Fix break condition

This commit is contained in:
CappielloAntonio 2022-02-06 16:20:31 +01:00
parent 362e31c450
commit acf8525cfd

View file

@ -154,9 +154,8 @@ public class MainActivity extends BaseActivity {
hideMusicSession();
break;
case BottomSheetBehavior.STATE_COLLAPSED:
if (playerBottomSheetFragment != null) {
playerBottomSheetFragment.goBackToFirstPage();
}
if (playerBottomSheetFragment != null) playerBottomSheetFragment.goBackToFirstPage();
break;
case BottomSheetBehavior.STATE_SETTLING:
case BottomSheetBehavior.STATE_EXPANDED:
case BottomSheetBehavior.STATE_DRAGGING: