mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
fix: music player now stays closed on startup if there are no songs in the queue
This commit is contained in:
parent
bae43cbfe9
commit
e88d6d7844
1 changed files with 1 additions and 3 deletions
|
|
@ -119,8 +119,6 @@ public class MainActivity extends BaseActivity {
|
|||
fragmentManager.beginTransaction().replace(R.id.player_bottom_sheet, new PlayerBottomSheetFragment(), "PlayerBottomSheet").commit();
|
||||
|
||||
setBottomSheetInPeek(mainViewModel.isQueueLoaded());
|
||||
|
||||
collapseBottomSheet();
|
||||
}
|
||||
|
||||
public void setBottomSheetInPeek(Boolean isVisible) {
|
||||
|
|
@ -163,7 +161,7 @@ public class MainActivity extends BaseActivity {
|
|||
|
||||
switch (state) {
|
||||
case BottomSheetBehavior.STATE_HIDDEN:
|
||||
hideMusicSession();
|
||||
resetMusicSession();
|
||||
break;
|
||||
case BottomSheetBehavior.STATE_COLLAPSED:
|
||||
if (playerBottomSheetFragment != null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue