Fix crashing while changing screen orientation
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
This commit is contained in:
parent
12bded682c
commit
5e8dba4d90
1 changed files with 3 additions and 0 deletions
|
@ -359,6 +359,9 @@ abstract class AbsSlidingMusicPanelActivity : AbsMusicServiceActivity() {
|
||||||
animate: Boolean = false,
|
animate: Boolean = false,
|
||||||
hideBottomSheet: Boolean = MusicPlayerRemote.playingQueue.isEmpty(),
|
hideBottomSheet: Boolean = MusicPlayerRemote.playingQueue.isEmpty(),
|
||||||
) {
|
) {
|
||||||
|
if (!ViewCompat.isLaidOut(bottomNavigationView)) {
|
||||||
|
return
|
||||||
|
}
|
||||||
if (isInOneTabMode) {
|
if (isInOneTabMode) {
|
||||||
hideBottomSheet(
|
hideBottomSheet(
|
||||||
hide = hideBottomSheet,
|
hide = hideBottomSheet,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue