Set state to paused on service destruction
This commit is contained in:
1 parent
09070cd065
commit
adfbe7f78e
1 file changed
+2
-5
@@ -182,12 +182,9 @@ public class PlaybackService extends Service implements Runnable, MediaPlayer.On
|
||||
saveState(true);
|
||||
|
||||
if (mMediaPlayer != null) {
|
||||
MediaPlayer player = mMediaPlayer;
|
||||
updateState(STATE_NORMAL);
|
||||
mMediaPlayer.release();
|
||||
mMediaPlayer = null;
|
||||
|
||||
if (player.isPlaying())
|
||||
player.pause();
|
||||
player.release();
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user