mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-10-29 03:36:21 +00:00
Properly update widget state when stopped (#7938)
This commit is contained in:
parent
c8cd0de157
commit
77888a12cc
@ -319,6 +319,8 @@ public class PlaybackService extends MediaBrowserServiceCompat {
|
||||
}
|
||||
}
|
||||
singleShotDisposables.clear();
|
||||
WidgetUpdater.updateWidget(getApplicationContext(), new WidgetUpdater.WidgetState(getPlayable(), getStatus(),
|
||||
getCurrentPosition(), getDuration(), getCurrentPlaybackSpeed()));
|
||||
stateManager.stopForeground(!UserPreferences.isPersistNotify());
|
||||
isRunning = false;
|
||||
currentMediaType = MediaType.UNKNOWN;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user