1
0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2024-11-22 19:12:45 +01: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
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);