From 6deea204c574da8c907ab1ab03262ccdd4f9e9ba Mon Sep 17 00:00:00 2001 From: VishnuSanal Date: Sun, 12 Nov 2023 12:46:14 +0530 Subject: [PATCH] spotless --- .../ui/views/appbar/BottomBar.java | 38 +++++++++---------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/app/src/main/java/com/amaze/filemanager/ui/views/appbar/BottomBar.java b/app/src/main/java/com/amaze/filemanager/ui/views/appbar/BottomBar.java index b9a77c127f..1ca5fcda12 100644 --- a/app/src/main/java/com/amaze/filemanager/ui/views/appbar/BottomBar.java +++ b/app/src/main/java/com/amaze/filemanager/ui/views/appbar/BottomBar.java @@ -20,8 +20,6 @@ package com.amaze.filemanager.ui.views.appbar; -import static com.amaze.filemanager.ui.fragments.preferencefragments.PreferencesConstants.PREFERENCE_CHANGEPATHS; - import java.util.ArrayList; import com.amaze.filemanager.R; @@ -29,7 +27,6 @@ import com.amaze.filemanager.filesystem.HybridFile; import com.amaze.filemanager.filesystem.files.FileUtils; import com.amaze.filemanager.ui.activities.MainActivity; -import com.amaze.filemanager.ui.dialogs.GeneralDialogCreation; import com.amaze.filemanager.ui.fragments.CompressedExplorerFragment; import com.amaze.filemanager.ui.fragments.MainFragment; import com.amaze.filemanager.ui.fragments.TabFragment; @@ -159,14 +156,14 @@ public void onFinish() { public void setClickListener() { frame.setOnClickListener( v -> { - Log.e("vishnu", "setClickListener() called"); + Log.e("vishnu", "setClickListener() called"); Fragment fragmentAtFrame = BottomBar.this.mainActivity.getFragmentAtFrame(); if (fragmentAtFrame instanceof TabFragment) { final MainFragment mainFragment = BottomBar.this.mainActivity.getCurrentMainFragment(); if (mainFragment != null && mainFragment.getMainFragmentViewModel() != null && OpenMode.CUSTOM != mainFragment.getMainFragmentViewModel().getOpenMode()) { - Log.e("vishnu", "setClickListener#crossFade" ); + Log.e("vishnu", "setClickListener#crossFade"); FileUtils.crossfade(buttons, pathLayout); timer.cancel(); timer.start(); @@ -180,21 +177,22 @@ public void setClickListener() { } }); -// frame.setOnLongClickListener( -// v -> { -// Log.e("vishnu", "setClickListener() called"); -// final MainFragment mainFragment = BottomBar.this.mainActivity.getCurrentMainFragment(); -// if (BottomBar.this.mainActivity.getBoolean(PREFERENCE_CHANGEPATHS) -// && ((mainFragment != null -// && mainFragment.getMainFragmentViewModel() != null -// && !mainFragment.getMainFragmentViewModel().getResults()) -// || buttons.getVisibility() == View.VISIBLE)) { -// GeneralDialogCreation.showChangePathsDialog( -// BottomBar.this.mainActivity, BottomBar.this.mainActivity.getPrefs()); -// return false; -// } -// return false; -// }); + // frame.setOnLongClickListener( + // v -> { + // Log.e("vishnu", "setClickListener() called"); + // final MainFragment mainFragment = + // BottomBar.this.mainActivity.getCurrentMainFragment(); + // if (BottomBar.this.mainActivity.getBoolean(PREFERENCE_CHANGEPATHS) + // && ((mainFragment != null + // && mainFragment.getMainFragmentViewModel() != null + // && !mainFragment.getMainFragmentViewModel().getResults()) + // || buttons.getVisibility() == View.VISIBLE)) { + // GeneralDialogCreation.showChangePathsDialog( + // BottomBar.this.mainActivity, BottomBar.this.mainActivity.getPrefs()); + // return false; + // } + // return false; + // }); }