Closed eygraber closed 4 years ago
Hi there! Could you please share a small sample (app) that reproduces this bug?
Nope. I have a huge app with tens of bottom sheets, and only get crash reports about it in production. I've never seen it happen locally.
A sample of the devices it happens on is:
Galaxy A70 - Android 10 Nexus 6P - Android 8.1 LG Q7+ - Android 9 LG Stylo3 - Android 7 Galaxy S20 Ultra 5G - Android 10 Moto G(5) Plus - Android 8.1
The problem seems that here we check if viewDragHelper is not null, than here we call viewDragHelper.getTouchSlop()
without checking if viewDragHelper is not null again.
Probably we should skip this code block if viewDragHelper is null.
@melaniegoetz If you think this is the correct way to fix the problem I can open a PR
Any idea when this might get merged? I get 5-10 crashes daily from this issue.
Did this make it into 1.2.0?
Nope, this will be in the next 1.3.0
Description: Crash (see logs below)
Expected behavior: Not to crash
Android API version: 8.1.0
Material Library version: com.google.android.material:material:1.2.0-alpha06
Device: Moto G (5) Plus
More Info: From Android issue tracker:
V8
is the obfuscated name of ViewDragHelper, andb
ismTouchSlop
.