Code cleanup

This commit is contained in:
CappielloAntonio 2021-09-03 09:43:38 +02:00
parent 33f2f7d5c7
commit f89f3454c4
2 changed files with 2 additions and 2 deletions

View file

@ -147,8 +147,7 @@ public class MainActivity extends BaseActivity {
case BottomSheetBehavior.STATE_COLLAPSED:
case BottomSheetBehavior.STATE_SETTLING:
PlayerBottomSheetFragment playerBottomSheetFragment = (PlayerBottomSheetFragment) getSupportFragmentManager().findFragmentByTag("PlayerBottomSheet");
if (playerBottomSheetFragment != null)
playerBottomSheetFragment.scrollOnTop();
if (playerBottomSheetFragment != null) playerBottomSheetFragment.scrollOnTop();
break;
case BottomSheetBehavior.STATE_DRAGGING:
case BottomSheetBehavior.STATE_EXPANDED: