mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 16:30:31 +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
|
* destroy the [OnlinePlayerService] foreground service
|
||||||
*/
|
*/
|
||||||
override fun onDestroy() {
|
override fun onDestroy() {
|
||||||
// clear and reset the playing queue
|
// reset the playing queue
|
||||||
PlayingQueue.clear()
|
|
||||||
PlayingQueue.resetToDefaults()
|
PlayingQueue.resetToDefaults()
|
||||||
|
|
||||||
if (this::nowPlayingNotification.isInitialized) nowPlayingNotification.destroySelfAndPlayer()
|
if (this::nowPlayingNotification.isInitialized) nowPlayingNotification.destroySelfAndPlayer()
|
||||||
|
@ -625,8 +625,6 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
|||||||
try {
|
try {
|
||||||
saveWatchPosition()
|
saveWatchPosition()
|
||||||
|
|
||||||
PlayingQueue.clear()
|
|
||||||
|
|
||||||
nowPlayingNotification.destroySelfAndPlayer()
|
nowPlayingNotification.destroySelfAndPlayer()
|
||||||
|
|
||||||
activity?.requestedOrientation =
|
activity?.requestedOrientation =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user