From 8eb6c493038e986bb4c9b522be01f7c44143dfc8 Mon Sep 17 00:00:00 2001 From: Prathamesh More Date: Mon, 11 Oct 2021 12:49:38 +0530 Subject: [PATCH] Fixed mini player popping up in Playing queue when queue is reordered --- .../activities/base/AbsSlidingMusicPanelActivity.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/code/name/monkey/retromusic/activities/base/AbsSlidingMusicPanelActivity.kt b/app/src/main/java/code/name/monkey/retromusic/activities/base/AbsSlidingMusicPanelActivity.kt index 428c500e..c6e67eb6 100644 --- a/app/src/main/java/code/name/monkey/retromusic/activities/base/AbsSlidingMusicPanelActivity.kt +++ b/app/src/main/java/code/name/monkey/retromusic/activities/base/AbsSlidingMusicPanelActivity.kt @@ -51,6 +51,7 @@ import code.name.monkey.retromusic.fragments.player.peak.PeakPlayerFragment import code.name.monkey.retromusic.fragments.player.plain.PlainPlayerFragment import code.name.monkey.retromusic.fragments.player.simple.SimplePlayerFragment import code.name.monkey.retromusic.fragments.player.tiny.TinyPlayerFragment +import code.name.monkey.retromusic.fragments.queue.PlayingQueueFragment import code.name.monkey.retromusic.helper.MusicPlayerRemote import code.name.monkey.retromusic.model.CategoryInfo import code.name.monkey.retromusic.util.PreferenceUtil @@ -227,7 +228,11 @@ abstract class AbsSlidingMusicPanelActivity : AbsMusicServiceActivity() { override fun onQueueChanged() { super.onQueueChanged() - hideBottomBar(MusicPlayerRemote.playingQueue.isEmpty()) + // Mini player should be hidden in Playing Queue + // it may pop up if hideBottomBar is called + if (currentFragment(R.id.fragment_container) !is PlayingQueueFragment) { + hideBottomBar(MusicPlayerRemote.playingQueue.isEmpty()) + } } override fun onBackPressed() {