Commit c227fb64 authored by Sébastien Toque's avatar Sébastien Toque

properly unbind the service to avoid a ServiceConnection leak

parent da496642
......@@ -66,5 +66,4 @@ public class AudioActivityGroup extends ActivityGroup {
AudioServiceController.getInstance().unbindAudioService();
super.onPause();
}
}
......@@ -145,4 +145,10 @@ public class AudioPlayerActivity extends Activity implements AudioPlayer {
// mAudioController.shuffle();
Util.toaster(R.string.notavailable);
}
@Override
protected void onPause() {
AudioServiceController.getInstance().unbindAudioService();
super.onPause();
}
}
......@@ -67,4 +67,9 @@ public class VideoActivityGroup extends ActivityGroup {
super.onBackPressed();
}
@Override
protected void onPause() {
AudioServiceController.getInstance().unbindAudioService();
super.onPause();
}
}
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