[Android] Fix playlists context menu visibility

Geoffrey Métais git at videolan.org
Wed Sep 5 17:50:11 CEST 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Sep  5 17:48:01 2018 +0200| [d2af4335ae5730cf3e6732da4d98b7338c175fd4] | committer: Geoffrey Métais

Fix playlists context menu visibility

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

 vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.java | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.java
index 0a463bfcb..401663683 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.java
@@ -56,7 +56,6 @@ import java.util.LinkedList;
 import java.util.List;
 
 import static org.videolan.medialibrary.media.MediaLibraryItem.FLAG_SELECTED;
-import static org.videolan.medialibrary.media.MediaLibraryItem.TYPE_PLAYLIST;
 
 public class AudioBrowserAdapter extends PagedListAdapter<MediaLibraryItem, AudioBrowserAdapter.ViewHolder> {
 
@@ -89,8 +88,6 @@ public class AudioBrowserAdapter extends PagedListAdapter<MediaLibraryItem, Audi
             return new ViewHolder<>(binding);
         } else {
             final AudioBrowserItemBinding binding = AudioBrowserItemBinding.inflate(inflater, parent, false);
-            // Hide context button for playlist in save playlist dialog
-            if (mType == TYPE_PLAYLIST) binding.itemMore.setVisibility(View.GONE);
             return new MediaItemViewHolder(binding);
         }
     }



More information about the Android mailing list