mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 08:20:32 +05:30
Keep queue when switching from audio to video mode and vice versa
This commit is contained in:
parent
dfef007bd9
commit
f1b7b2f0a7
@ -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()
|
||||
|
@ -625,8 +625,6 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
||||
try {
|
||||
saveWatchPosition()
|
||||
|
||||
PlayingQueue.clear()
|
||||
|
||||
nowPlayingNotification.destroySelfAndPlayer()
|
||||
|
||||
activity?.requestedOrientation =
|
||||
|
Loading…
x
Reference in New Issue
Block a user