Commit a9603d30 authored by Edward Wang's avatar Edward Wang
Browse files

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.
parent 23a955c5
......@@ -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);
}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment