Fixed starting with DefaultActionButtonCallback
This commit is contained in:
parent
f6082f5808
commit
4787e2ecc9
|
@ -83,13 +83,13 @@ public class DefaultActionButtonCallback implements ActionButtonCallback {
|
||||||
} else { // media is downloaded
|
} else { // media is downloaded
|
||||||
if (media.isCurrentlyPlaying()) {
|
if (media.isCurrentlyPlaying()) {
|
||||||
new PlaybackServiceStarter(context, media)
|
new PlaybackServiceStarter(context, media)
|
||||||
.startWhenPrepared(false)
|
.startWhenPrepared(true)
|
||||||
.shouldStream(false)
|
.shouldStream(false)
|
||||||
.start();
|
.start();
|
||||||
context.sendBroadcast(new Intent(PlaybackService.ACTION_PAUSE_PLAY_CURRENT_EPISODE));
|
context.sendBroadcast(new Intent(PlaybackService.ACTION_PAUSE_PLAY_CURRENT_EPISODE));
|
||||||
} else if (media.isCurrentlyPaused()) {
|
} else if (media.isCurrentlyPaused()) {
|
||||||
new PlaybackServiceStarter(context, media)
|
new PlaybackServiceStarter(context, media)
|
||||||
.startWhenPrepared(false)
|
.startWhenPrepared(true)
|
||||||
.shouldStream(false)
|
.shouldStream(false)
|
||||||
.start();
|
.start();
|
||||||
context.sendBroadcast(new Intent(PlaybackService.ACTION_RESUME_PLAY_CURRENT_EPISODE));
|
context.sendBroadcast(new Intent(PlaybackService.ACTION_RESUME_PLAY_CURRENT_EPISODE));
|
||||||
|
|
Loading…
Reference in New Issue