mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-10-29 11:49:33 +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();
|
singleShotDisposables.clear();
|
||||||
|
WidgetUpdater.updateWidget(getApplicationContext(), new WidgetUpdater.WidgetState(getPlayable(), getStatus(),
|
||||||
|
getCurrentPosition(), getDuration(), getCurrentPlaybackSpeed()));
|
||||||
stateManager.stopForeground(!UserPreferences.isPersistNotify());
|
stateManager.stopForeground(!UserPreferences.isPersistNotify());
|
||||||
isRunning = false;
|
isRunning = false;
|
||||||
currentMediaType = MediaType.UNKNOWN;
|
currentMediaType = MediaType.UNKNOWN;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user