Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on Nougat in full screen mode with answer buttons hidden #4451

Closed
timrae opened this issue Oct 10, 2016 · 4 comments

Comments

@timrae
Copy link
Member

commented Oct 10, 2016

AnkiDroid Version = 2.7beta1

Android Version = 7.0

ACRA UUID = 005d2c15-788a-4a61-90e8-5da77e4f8693

@timrae

This comment has been minimized.

Copy link
Member Author

commented Oct 11, 2016

java.lang.ClassCastException: android.support.design.widget.CoordinatorLayout$LayoutParams cannot be cast to android.widget.RelativeLayout$LayoutParams
at com.ichi2.anki.AbstractFlashcardViewer.initLayout(AbstractFlashcardViewer.java:1439)
at com.ichi2.anki.AbstractFlashcardViewer.onCollectionLoaded(AbstractFlashcardViewer.java:889)
at com.ichi2.anki.Reviewer.onCollectionLoaded(Reviewer.java:98)
at com.ichi2.anki.AnkiActivity.onLoadFinished(AnkiActivity.java:286)
at com.ichi2.anki.AnkiActivity.onLoadFinished(AnkiActivity.java:42)
@229106948

This comment has been minimized.

Copy link

commented Nov 26, 2018

I have the same issue , it happened only 8.0 system

android.widget.RelativeLayout$LayoutParams cannot be cast to android.support.design.widget.CoordinatorLayout$LayoutParams

android.support.design.widget.CoordinatorLayout.onChildViewsChanged(CoordinatorLayout.java:1221)

2 android.support.design.widget.CoordinatorLayout$OnPreDrawListener.onPreDraw(CoordinatorLayout.java:1814)
3 android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:977)
4 android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2516)
5 android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1515)
6 android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7266)
7 android.view.Choreographer$CallbackRecord.run(Choreographer.java:981)
8 android.view.Choreographer.doCallbacks(Choreographer.java:790)
9 android.view.Choreographer.doFrame(Choreographer.java:721)
10 android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:967)
11 android.os.Handler.handleCallback(Handler.java:808)
12 android.os.Handler.dispatchMessage(Handler.java:101)
13 android.os.Looper.loop(Looper.java:166)
14 android.app.ActivityThread.main(ActivityThread.java:7425)
15 java.lang.reflect.Method.invoke(Native Method)
16 com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
17 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)

@mikehardy

This comment has been minimized.

Copy link
Member

commented Nov 26, 2018

Interesting @229106948 - can you include what version of AnkiDroid you are on?

@mikehardy

This comment has been minimized.

Copy link
Member

commented Dec 21, 2018

Unable to reproduce on Android 8 / API26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.