[Android] Ensure action mode is stopped on pause
Geoffrey Métais
git at videolan.org
Thu Dec 8 18:12:48 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Dec 8 16:38:11 2016 +0100| [ff0bdde90a2e9566d1a7819c1a35166e0978f951] | committer: Geoffrey Métais
Ensure action mode is stopped on pause
> https://code.videolan.org/videolan/vlc-android/commit/ff0bdde90a2e9566d1a7819c1a35166e0978f951
---
.../src/org/videolan/vlc/gui/browser/MediaBrowserFragment.java | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.java
index f90bd8a..76064f6 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.java
@@ -94,6 +94,12 @@ public abstract class MediaBrowserFragment extends PlaybackServiceFragment imple
setFabPlayVisibility(false);
}
+ @Override
+ public void onPause() {
+ super.onPause();
+ stopActionMode();
+ }
+
public void setFabPlayVisibility(boolean enable) {
mFabPlay.setVisibility(enable ? View.VISIBLE : View.INVISIBLE);
}
@@ -186,6 +192,7 @@ public abstract class MediaBrowserFragment extends PlaybackServiceFragment imple
if (mActionMode != null) {
mActionMode.finish();
setFabPlayVisibility(true);
+ mActionMode = null;
}
}
More information about the Android
mailing list