Keep queue when switching from audio to video mode and vice versa

This commit is contained in:
Bnyro 2023-06-11 14:55:39 +02:00
parent dfef007bd9
commit f1b7b2f0a7
2 changed files with 1 additions and 4 deletions

View File

@ -369,8 +369,7 @@ class OnlinePlayerService : LifecycleService() {
* destroy the [OnlinePlayerService] foreground service
*/
override fun onDestroy() {
// clear and reset the playing queue
PlayingQueue.clear()
// reset the playing queue
PlayingQueue.resetToDefaults()
if (this::nowPlayingNotification.isInitialized) nowPlayingNotification.destroySelfAndPlayer()

View File

@ -625,8 +625,6 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
try {
saveWatchPosition()
PlayingQueue.clear()
nowPlayingNotification.destroySelfAndPlayer()
activity?.requestedOrientation =