[Android] HistoryFragment: fix viewing from currently-playing list
Edward Wang
git at videolan.org
Thu Aug 29 18:26:36 CEST 2013
vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Thu Aug 29 16:20:34 2013 +0200| [84e465c7e7e56b849c4f592590bca3ee5a51e99e] | committer: Edward Wang
HistoryFragment: fix viewing from currently-playing list
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=84e465c7e7e56b849c4f592590bca3ee5a51e99e
---
vlc-android/src/org/videolan/vlc/gui/HistoryFragment.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.java b/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.java
index 991fe8f..5272560 100644
--- a/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.java
@@ -79,7 +79,8 @@ public class HistoryFragment extends SherlockListFragment {
private void playListIndex(int position) {
AudioServiceController audioController = AudioServiceController.getInstance();
- audioController.load(mHistoryAdapter.getAllURIs(), position, true);
+ LibVLC.getExistingInstance().setMediaList();
+ audioController.playIndex(position);
Intent intent = new Intent(getActivity(), AudioPlayerActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
More information about the Android
mailing list