[Android] Reset FAB visibility after action mode is cleared

Geoffrey Métais git at videolan.org
Mon Oct 2 10:03:23 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Sep 28 18:07:32 2017 +0200| [ac7e6b2300f27b5bf4d242328db5d33e91c2455f] | committer: Geoffrey Métais

Reset FAB visibility after action mode is cleared

> https://code.videolan.org/videolan/vlc-android/commit/ac7e6b2300f27b5bf4d242328db5d33e91c2455f
---

 vlc-android/src/org/videolan/vlc/gui/audio/BaseAudioBrowser.java  | 1 +
 vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java | 1 +
 2 files changed, 2 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/BaseAudioBrowser.java b/vlc-android/src/org/videolan/vlc/gui/audio/BaseAudioBrowser.java
index ff722621c..af4618b59 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/BaseAudioBrowser.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/BaseAudioBrowser.java
@@ -141,6 +141,7 @@ public abstract class BaseAudioBrowser extends SortableFragment<AudioBrowserAdap
     }
 
     public void onDestroyActionMode(AudioBrowserAdapter adapter) {
+        setFabPlayVisibility(true);
         mActionMode = null;
         ArrayList<? extends MediaLibraryItem> items = adapter.getAll();
         if (items != null) {
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
index 507a2da7f..c61401895 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
@@ -485,6 +485,7 @@ public class VideoGridFragment extends SortableFragment<VideoListAdapter> implem
     @Override
     public void onDestroyActionMode(ActionMode mode) {
         mActionMode = null;
+        setFabPlayVisibility(true);
         final ArrayList<MediaWrapper> items = mAdapter.getAll();
         for (int i = 0; i < items.size(); ++i) {
             MediaWrapper mw = items.get(i);



More information about the Android mailing list