Fix for untouchable area

This commit is contained in:
Avently 2020-09-16 23:41:49 +03:00
parent a1e4ef9e8e
commit c9be812330
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,8 @@ public class CustomBottomSheetBehavior extends BottomSheetBehavior<FrameLayout>
} }
// Don't need to do anything if bottomSheet isn't expanded // Don't need to do anything if bottomSheet isn't expanded
if (getState() == BottomSheetBehavior.STATE_EXPANDED) { if (getState() == BottomSheetBehavior.STATE_EXPANDED
&& event.getAction() == MotionEvent.ACTION_DOWN) {
// Without overriding scrolling will not work when user touches these elements // Without overriding scrolling will not work when user touches these elements
for (final Integer element : skipInterceptionOfElements) { for (final Integer element : skipInterceptionOfElements) {
final ViewGroup viewGroup = child.findViewById(element); final ViewGroup viewGroup = child.findViewById(element);