-
Notifications
You must be signed in to change notification settings - Fork 30
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
Cannot call removeOnDrawListener inside of onDraw #38
Comments
android os :8.1.0 |
maybe this code not work?
|
The stacktrace indicates that the code is inside a post ( The exception for that version of Android is created here: https://cs.android.com/android/platform/superproject/+/android-8.1.0_r81:frameworks/base/core/java/android/view/ViewTreeObserver.java;l=704;drc=f383c24749ae6bfcf8f8cee26fe7bc6897f7511c We can also see where mInDispatchOnDraw is set to true and false, which is within dispatchOnDraw() which does not show up in the stacktrace. So based on the code & stacktrace there's no way for mInDispatchOnDraw to be true. Can you reproduce this issue consistently? Do you have a repro scenario with an emulator? Or is it only from production crashes? If production, is that only of a specific type of device? |
The text was updated successfully, but these errors were encountered: