[Android] DirectoryViewFragment: fix audio loading
Edward Wang
git at videolan.org
Tue Sep 10 01:11:13 CEST 2013
vlc-ports/android | branch: 0.1.x-bugfix | Edward Wang <edward.c.wang at compdigitec.com> | Wed Sep 4 18:48:45 2013 -0400| [0df0b487e2d2f4a1eeb1f249f278ea3b52c31fa8] | committer: Jean-Baptiste Kempf
DirectoryViewFragment: fix audio loading
(cherry picked from commit a3fde1ae5ffeb65b16f8e236bf8d7d26dd15431e)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=0df0b487e2d2f4a1eeb1f249f278ea3b52c31fa8
---
.../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 5d7abcd..e820445 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