Fixed starting with DefaultActionButtonCallback

This commit is contained in:
ByteHamster 2018-05-06 20:07:35 +02:00
parent f6082f5808
commit 4787e2ecc9
1 changed files with 2 additions and 2 deletions

View File

@ -83,13 +83,13 @@ public class DefaultActionButtonCallback implements ActionButtonCallback {
} else { // media is downloaded
if (media.isCurrentlyPlaying()) {
new PlaybackServiceStarter(context, media)
.startWhenPrepared(false)
.startWhenPrepared(true)
.shouldStream(false)
.start();
context.sendBroadcast(new Intent(PlaybackService.ACTION_PAUSE_PLAY_CURRENT_EPISODE));
} else if (media.isCurrentlyPaused()) {
new PlaybackServiceStarter(context, media)
.startWhenPrepared(false)
.startWhenPrepared(true)
.shouldStream(false)
.start();
context.sendBroadcast(new Intent(PlaybackService.ACTION_RESUME_PLAY_CURRENT_EPISODE));