[Android] Load the list of songs when clicking on the songs view

Edward Wang git at videolan.org
Thu Nov 28 23:20:32 CET 2013


vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Thu Nov 28 17:20:25 2013 -0500| [938d3732991b2df5f0cc8f0e704bc74a1b29ceda] | committer: Edward Wang

Load the list of songs when clicking on the songs view

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=938d3732991b2df5f0cc8f0e704bc74a1b29ceda
---

 .../src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java      |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

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 29b80e3..25c90fb 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
@@ -158,8 +158,9 @@ public class AudioBrowserFragment extends SherlockFragment implements ISortable
     OnItemClickListener songListener = new OnItemClickListener() {
         @Override
         public void onItemClick(AdapterView<?> av, View v, int p, long id) {
-            ArrayList<String> mediaLocation = mSongsAdapter.getLocations(p);
-            mAudioController.load(mediaLocation, 0);
+            ArrayList<String> songList = new ArrayList<String>();
+            int selectedId = mSongsAdapter.getListWithPosition(songList, p);
+            mAudioController.load(songList, selectedId);
             AudioPlayerFragment.start(getActivity());
         }
     };



More information about the Android mailing list