[Android] DirectoryViewFragment: fix audio loading
Edward Wang
git at videolan.org
Thu Sep 5 00:50:45 CEST 2013
vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Wed Sep 4 18:48:45 2013 -0400| [a3fde1ae5ffeb65b16f8e236bf8d7d26dd15431e] | committer: Edward Wang
DirectoryViewFragment: fix audio loading
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=a3fde1ae5ffeb65b16f8e236bf8d7d26dd15431e
---
.../src/org/videolan/vlc/gui/DirectoryViewFragment.java | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/DirectoryViewFragment.java b/vlc-android/src/org/videolan/vlc/gui/DirectoryViewFragment.java
index a741468..68df901 100644
--- a/vlc-android/src/org/videolan/vlc/gui/DirectoryViewFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/DirectoryViewFragment.java
@@ -104,6 +104,18 @@ public class DirectoryViewFragment extends SherlockListFragment implements ISort
}
@Override
+ public void onResume() {
+ super.onResume();
+ AudioServiceController.getInstance().bindAudioService(getActivity());
+ }
+
+ @Override
+ public void onPause() {
+ super.onPause();
+ AudioServiceController.getInstance().unbindAudioService(getActivity());
+ }
+
+ @Override
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
int position = ((AdapterContextMenuInfo)menuInfo).position;
More information about the Android
mailing list