mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-02-02 03:36:48 +01:00
Fixed calling bindService if service is not running
This commit is contained in:
parent
573cd2efd2
commit
7a3bb825ed
@ -208,9 +208,11 @@ public abstract class PlaybackController {
|
||||
handleStatus();
|
||||
} else {
|
||||
Log.w(TAG, "Couldn't receive status update: playbackService was null");
|
||||
if (PlaybackService.isRunning) {
|
||||
bindToService();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
private final BroadcastReceiver notificationReceiver = new BroadcastReceiver() {
|
||||
@ -232,7 +234,7 @@ public abstract class PlaybackController {
|
||||
onBufferUpdate(progress);
|
||||
break;
|
||||
case PlaybackService.NOTIFICATION_TYPE_RELOAD:
|
||||
if (playbackService == null) {
|
||||
if (playbackService == null && PlaybackService.isRunning) {
|
||||
bindToService();
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user