mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-01-22 14:50:54 +01:00
Fixed calling bindService if service is not running
This commit is contained in:
parent
573cd2efd2
commit
7a3bb825ed
@ -208,7 +208,9 @@ public abstract class PlaybackController {
|
||||
handleStatus();
|
||||
} else {
|
||||
Log.w(TAG, "Couldn't receive status update: playbackService was null");
|
||||
bindToService();
|
||||
if (PlaybackService.isRunning) {
|
||||
bindToService();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -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…
Reference in New Issue
Block a user