Fix some lint problems

This commit is contained in:
CappielloAntonio 2021-04-27 11:47:23 +02:00
parent c5ad7f282e
commit 81581c623d
4 changed files with 133 additions and 162 deletions

View file

@ -171,10 +171,8 @@ public class MainActivity extends BaseActivity {
public void onStateChanged(@NonNull View view, int state) {
switch (state) {
case BottomSheetBehavior.STATE_SETTLING | BottomSheetBehavior.STATE_COLLAPSED:
Log.i(TAG, "onStateChanged: IS_SETTLING | IS_COLLAPSING");
PlayerBottomSheetFragment playerBottomSheetFragment = (PlayerBottomSheetFragment) getSupportFragmentManager().findFragmentByTag("PlayerBottomSheet");
if (playerBottomSheetFragment == null) break;
playerBottomSheetFragment.scrollOnTop();
break;
case BottomSheetBehavior.STATE_HIDDEN: