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
Closed

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

timrae opened this issue Oct 10, 2016 · 4 comments
Labels
Accepted Maintainers welcome a PR implementing this feature Priority-High

Comments

@timrae
Copy link
Member

timrae commented Oct 10, 2016

AnkiDroid Version = 2.7beta1

Android Version = 7.0

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

@timrae timrae added Priority-High Accepted Maintainers welcome a PR implementing this feature labels Oct 11, 2016
@timrae
Copy link
Member Author

timrae 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
Copy link

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
Copy link
Member

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

@mikehardy mikehardy reopened this Nov 26, 2018
@mikehardy mikehardy added Needs Triage Needs Author Reply Waiting for a reply from the original author labels Nov 26, 2018
@mikehardy
Copy link
Member

Unable to reproduce on Android 8 / API26

@mikehardy mikehardy removed Needs Triage Needs Author Reply Waiting for a reply from the original author labels Dec 21, 2018
Apochens added a commit to Apochens/Anki-Android that referenced this issue Sep 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Maintainers welcome a PR implementing this feature Priority-High
Projects
None yet
Development

No branches or pull requests

4 participants