[Android] Bind audio service to secondary activity for music

Geoffrey Métais git at videolan.org
Tue Mar 17 10:36:01 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Mar 17 10:34:17 2015 +0100| [258208d048a0e0b55626cf5302070c0bbaf4447e] | committer: Geoffrey Métais

Bind audio service to secondary activity for music

Fixes playback from AudioAlbumsSongsFragment

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=258208d048a0e0b55626cf5302070c0bbaf4447e
---

 .../src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java     |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
index a830aca..1e8cc07 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
@@ -177,11 +177,13 @@ public class AudioAlbumsSongsFragment extends BrowserFragment implements SwipeRe
     @Override
     public void onPause() {
         super.onPause();
+        AudioServiceController.getInstance().unbindAudioService(getActivity());
     }
 
     @Override
     public void onResume() {
         super.onResume();
+        AudioServiceController.getInstance().bindAudioService(getActivity());
     }
 
     @Override



More information about the Android mailing list