Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
VishnuSanal committed Nov 12, 2023
1 parent d10231e commit 6deea20
Showing 1 changed file with 18 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,13 @@

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;
import com.amaze.filemanager.fileoperations.filesystem.OpenMode;
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;
Expand Down Expand Up @@ -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();
Expand All @@ -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;
// });

}

Expand Down

0 comments on commit 6deea20

Please sign in to comment.