1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-10-18 00:47:39 +00:00

Fix for untouchable area

This commit is contained in:
Avently
2020-09-16 23:41:49 +03:00
parent a1e4ef9e8e
commit c9be812330

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);