From c9be812330dd80e0901ccc9a16fe99f06dd7f737 Mon Sep 17 00:00:00 2001 From: Avently <7953703+avently@users.noreply.github.com> Date: Wed, 16 Sep 2020 23:41:49 +0300 Subject: [PATCH] Fix for untouchable area --- .../schabi/newpipe/player/event/CustomBottomSheetBehavior.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/player/event/CustomBottomSheetBehavior.java b/app/src/main/java/org/schabi/newpipe/player/event/CustomBottomSheetBehavior.java index 19c621221..463331074 100644 --- a/app/src/main/java/org/schabi/newpipe/player/event/CustomBottomSheetBehavior.java +++ b/app/src/main/java/org/schabi/newpipe/player/event/CustomBottomSheetBehavior.java @@ -44,7 +44,8 @@ public class CustomBottomSheetBehavior extends BottomSheetBehavior } // 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 for (final Integer element : skipInterceptionOfElements) { final ViewGroup viewGroup = child.findViewById(element);