[Android] Fix Album view opening

Geoffrey Métais git at videolan.org
Fri Dec 7 15:01:41 CET 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Dec  7 15:01:07 2018 +0100| [c0dcc1445bb23806d7c58f5501c8e2da3dc2f736] | committer: Geoffrey Métais

Fix Album view opening

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

 vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
index 767ea1acd..028e535b2 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
@@ -38,6 +38,7 @@ import org.videolan.medialibrary.media.MediaLibraryItem;
 import org.videolan.medialibrary.media.MediaWrapper;
 import org.videolan.vlc.MediaParsingServiceKt;
 import org.videolan.vlc.R;
+import org.videolan.vlc.gui.PlaylistActivity;
 import org.videolan.vlc.gui.SecondaryActivity;
 import org.videolan.vlc.gui.view.SwipeRefreshLayout;
 import org.videolan.vlc.media.MediaUtils;
@@ -329,6 +330,9 @@ public class AudioBrowserFragment extends BaseAudioBrowser implements SwipeRefre
                 i.putExtra(TAG_ITEM, item);
                 break;
             case MediaLibraryItem.TYPE_ALBUM:
+                i = new Intent(getActivity(), PlaylistActivity.class);
+                i.putExtra(TAG_ITEM, item);
+                break;
             default:
                 return;
         }



More information about the Android mailing list