[Android] Load the entire list of songs when clicking in the browser
Edward Wang
git at videolan.org
Mon Jan 20 22:28:48 CET 2014
vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Mon Jan 20 16:25:13 2014 -0500| [a9603d30536f52f9640c6b5d64a77a6a2933ac65] | committer: Edward Wang
Load the entire list of songs when clicking in the browser
It is counter-intuitive and breaks user expectation since the user doesn't know why the rest of the files aren't playing as expected.
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=a9603d30536f52f9640c6b5d64a77a6a2933ac65
---
.../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 5246c11..320078a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
@@ -167,8 +167,9 @@ public class AudioBrowserFragment extends SherlockFragment {
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);
}
};
More information about the Android
mailing list