You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Android API: Android P Mapbox Navigation SDK version: 0.13.0
Steps to trigger behavior
Utilize InstructionView in v4 Fragment or AppCompatActivity
Attempt to inflate layout
Crash Thrown
Actual behavior
java.lang.ClassCastException: android.view.ContextThemeWrapper cannot be cast to android.support.v4.app.FragmentActivity
at com.mapbox.services.android.navigation.ui.v5.instruction.InstructionView.addBottomSheetListener(InstructionView.java:554)
at com.mapbox.services.android.navigation.ui.v5.instruction.InstructionView.onAttachedToWindow(InstructionView.java:143)
at android.view.View.dispatchAttachedToWindow(View.java:18345)
at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3397)
at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3404)
at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3404)
at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3404)
at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3404)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1732)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1443)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7125)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:935)
at android.view.Choreographer.doCallbacks(Choreographer.java:747)
at android.view.Choreographer.doFrame(Choreographer.java:682)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:921)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6649)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:826)
The text was updated successfully, but these errors were encountered:
Hey @dhodge229 thanks for bringing this to us - just to confirm, you are using only the InstructionView in a layout (in either v4Fragment or AppCompatActivity). Do you mind letting us know which version of the support library you are using as well? Thanks!
Android API: Android P
Mapbox Navigation SDK version: 0.13.0
Steps to trigger behavior
Actual behavior
The text was updated successfully, but these errors were encountered: