[Android] Lock Audioplayer when expanded
Geoffrey Métais
git at videolan.org
Tue Jan 22 15:10:40 CET 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jan 22 15:09:55 2019 +0100| [4ef17cb70932eb0e085348ea483fca5e5832d33a] | committer: Geoffrey Métais
Lock Audioplayer when expanded
> https://code.videolan.org/videolan/vlc-android/commit/4ef17cb70932eb0e085348ea483fca5e5832d33a
---
vlc-android/src/org/videolan/vlc/gui/helpers/BottomSheetBehavior.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/helpers/BottomSheetBehavior.java b/vlc-android/src/org/videolan/vlc/gui/helpers/BottomSheetBehavior.java
index 05748f74c..94c1ffbc5 100644
--- a/vlc-android/src/org/videolan/vlc/gui/helpers/BottomSheetBehavior.java
+++ b/vlc-android/src/org/videolan/vlc/gui/helpers/BottomSheetBehavior.java
@@ -40,7 +40,7 @@ public class BottomSheetBehavior<V extends View> extends com.google.android.mate
@Override
public void onNestedScroll(@NonNull CoordinatorLayout coordinatorLayout, @NonNull V child, @NonNull View target, int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed, int type) {
- if (lock) return;
+ if (lock || getState() == BottomSheetBehavior.STATE_EXPANDED) return;
if (dyConsumed > 0 && child.getVisibility() == View.VISIBLE) {
final AudioPlayerContainerActivity activity = (AudioPlayerContainerActivity) child.getContext();
activity.hideAudioPlayer();
More information about the Android
mailing list