[Android] Don't show FAB in audio sub-sections for now

Geoffrey Métais git at videolan.org
Wed Dec 7 18:49:49 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Dec  7 18:49:12 2016 +0100| [1b4c7cfeda468fcb7294385c87de36612e24b79a] | committer: Geoffrey Métais

Don't show FAB in audio sub-sections for now

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

 vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumFragment.java   | 3 +++
 .../src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java     | 3 +++
 .../src/org/videolan/vlc/gui/browser/MediaBrowserFragment.java       | 5 +++--
 3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumFragment.java
index f3fffce..fe9c59e 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumFragment.java
@@ -206,6 +206,9 @@ public class AudioAlbumFragment extends BaseAudioBrowser implements View.OnClick
     public void onUpdateFinished(AudioBrowserAdapter adapter) {}
 
     @Override
+    public void setFabPlayVisibility(boolean enable) {}
+
+    @Override
     protected AudioBrowserAdapter getCurrentAdapter() {
         return mAdapter;
     }
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
index c9eebc5..333103e 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
@@ -314,6 +314,9 @@ public class AudioAlbumsSongsFragment extends BaseAudioBrowser implements SwipeR
     }
 
     @Override
+    public void setFabPlayVisibility(boolean enable) {}
+
+    @Override
     public void onUpdateFinished(AudioBrowserAdapter adapter) {}
 
     @Override
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 da446f5..f90bd8a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.java
@@ -183,9 +183,10 @@ public abstract class MediaBrowserFragment extends PlaybackServiceFragment imple
     }
 
     protected void stopActionMode() {
-        if (mActionMode != null)
+        if (mActionMode != null) {
             mActionMode.finish();
-        setFabPlayVisibility(true);
+            setFabPlayVisibility(true);
+        }
     }
 
     public void invalidateActionMode() {



More information about the Android mailing list