Search in sources :

Example 6 with MainActivity

use of com.amaze.filemanager.ui.activities.MainActivity in project AmazeFileManager by TeamAmaze.

the class BottomBar method showButtons.

public void showButtons(final BottomBarButtonPath buttonPathInterface) {
    final String path = buttonPathInterface.getPath();
    if (buttons.getVisibility() == View.VISIBLE) {
        lastUsedArrowButton = 0;
        lastUsedFolderButton = 0;
        buttons.removeAllViews();
        buttons.setMinimumHeight(pathLayout.getHeight());
        buttonRoot.setImageDrawable(mainActivity.getResources().getDrawable(buttonPathInterface.getRootDrawable()));
        String[] names = FileUtils.getFolderNamesInPath(path);
        final String[] paths = FileUtils.getPathsInPath(path);
        View view = new View(mainActivity);
        LinearLayout.LayoutParams params1 = new LinearLayout.LayoutParams(appbar.getToolbar().getContentInsetLeft(), LinearLayout.LayoutParams.WRAP_CONTENT);
        view.setLayoutParams(params1);
        buttons.addView(view);
        for (int i = 0; i < names.length; i++) {
            final int k = i;
            if (i == 0) {
                buttonRoot.setOnClickListener(p1 -> {
                    if (paths.length != 0) {
                        buttonPathInterface.changePath(paths[k]);
                        timer.cancel();
                        timer.start();
                    }
                });
                buttons.addView(buttonRoot);
            } else if (FileUtils.isStorage(paths[i])) {
                buttonStorage.setOnClickListener(p1 -> {
                    buttonPathInterface.changePath(paths[k]);
                    timer.cancel();
                    timer.start();
                });
                buttons.addView(buttonStorage);
            } else {
                Button button = createFolderButton(names[i]);
                button.setOnClickListener(p1 -> {
                    buttonPathInterface.changePath(paths[k]);
                    timer.cancel();
                    timer.start();
                });
                buttons.addView(button);
            }
            if (names.length - i != 1) {
                buttons.addView(createArrow());
            }
        }
        scroll.post(() -> {
            sendScroll(scroll);
            sendScroll(pathScroll);
        });
        if (buttons.getVisibility() == View.VISIBLE) {
            timer.cancel();
            timer.start();
        }
    }
}
Also used : ImageButton(android.widget.ImageButton) GestureDetector(android.view.GestureDetector) LinearLayout(android.widget.LinearLayout) KeyEvent(android.view.KeyEvent) NonNull(androidx.annotation.NonNull) HybridFile(com.amaze.filemanager.filesystem.HybridFile) FrameLayout(android.widget.FrameLayout) ImageView(android.widget.ImageView) CompressedExplorerFragment(com.amaze.filemanager.ui.fragments.CompressedExplorerFragment) Animator(android.animation.Animator) MainFragment(com.amaze.filemanager.ui.fragments.MainFragment) OpenMode(com.amaze.filemanager.file_operations.filesystem.OpenMode) Drawable(android.graphics.drawable.Drawable) PREFERENCE_CHANGEPATHS(com.amaze.filemanager.ui.fragments.preference_fragments.PreferencesConstants.PREFERENCE_CHANGEPATHS) MainActivity(com.amaze.filemanager.ui.activities.MainActivity) ColorInt(androidx.annotation.ColorInt) ArrayList(java.util.ArrayList) AnimationUtils(android.view.animation.AnimationUtils) HorizontalScrollView(android.widget.HorizontalScrollView) MainActivityHelper(com.amaze.filemanager.utils.MainActivityHelper) MotionEvent(android.view.MotionEvent) Handler(android.os.Handler) Fragment(androidx.fragment.app.Fragment) View(android.view.View) Button(android.widget.Button) Animation(android.view.animation.Animation) BottomBarButtonPath(com.amaze.filemanager.utils.BottomBarButtonPath) TabFragment(com.amaze.filemanager.ui.fragments.TabFragment) GeneralDialogCreation(com.amaze.filemanager.ui.dialogs.GeneralDialogCreation) AnimatorListenerAdapter(android.animation.AnimatorListenerAdapter) FileUtils(com.amaze.filemanager.filesystem.files.FileUtils) ViewGroup(android.view.ViewGroup) Objects(java.util.Objects) Color(android.graphics.Color) Gravity(android.view.Gravity) Utils(com.amaze.filemanager.utils.Utils) CountDownTimer(android.os.CountDownTimer) TextView(android.widget.TextView) R(com.amaze.filemanager.R) ImageButton(android.widget.ImageButton) Button(android.widget.Button) ImageView(android.widget.ImageView) HorizontalScrollView(android.widget.HorizontalScrollView) View(android.view.View) TextView(android.widget.TextView) LinearLayout(android.widget.LinearLayout)

Example 7 with MainActivity

use of com.amaze.filemanager.ui.activities.MainActivity in project AmazeFileManager by TeamAmaze.

the class AppConfigTest method testGetScreenUtils.

@Test
public void testGetScreenUtils() {
    assertNull(AppConfig.getInstance().getScreenUtils());
    MainActivity mock = mock(MainActivity.class);
    AppConfig.getInstance().setMainActivityContext(mock);
    assertNotNull(AppConfig.getInstance().getScreenUtils());
}
Also used : MainActivity(com.amaze.filemanager.ui.activities.MainActivity) Test(org.junit.Test)

Example 8 with MainActivity

use of com.amaze.filemanager.ui.activities.MainActivity in project AmazeFileManager by TeamAmaze.

the class SmbSearchDialog method onCreateDialog.

@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
    MaterialDialog.Builder builder = new MaterialDialog.Builder(getActivity());
    builder.title(R.string.searching_devices);
    builder.negativeColor(accentColor);
    builder.negativeText(R.string.cancel);
    builder.onNegative((dialog, which) -> {
        if (subnetScanner != null)
            subnetScanner.cancel(true);
        dismiss();
    });
    builder.onPositive((dialog, which) -> {
        if (subnetScanner != null)
            subnetScanner.cancel(true);
        if (getActivity() != null && getActivity() instanceof MainActivity) {
            dismiss();
            MainActivity mainActivity = (MainActivity) getActivity();
            mainActivity.showSMBDialog("", "", false);
        }
    });
    builder.positiveText(R.string.use_custom_ip);
    builder.positiveColor(accentColor);
    computers.add(new ComputerParcelable("-1", "-1"));
    listViewAdapter = new ListViewAdapter(getActivity(), computers);
    subnetScanner = new SubnetScanner(getActivity());
    subnetScanner.setObserver(new SubnetScanner.ScanObserver() {

        @Override
        public void computerFound(final ComputerParcelable computer) {
            if (getActivity() != null)
                getActivity().runOnUiThread(() -> {
                    if (!computers.contains(computer))
                        computers.add(computer);
                    listViewAdapter.notifyDataSetChanged();
                });
        }

        @Override
        public void searchFinished() {
            if (getActivity() != null) {
                getActivity().runOnUiThread(() -> {
                    if (computers.size() == 1) {
                        dismiss();
                        Toast.makeText(getActivity(), getString(R.string.no_device_found), Toast.LENGTH_SHORT).show();
                        MainActivity mainActivity = (MainActivity) getActivity();
                        mainActivity.showSMBDialog("", "", false);
                        return;
                    }
                    computers.remove(computers.size() - 1);
                    listViewAdapter.notifyDataSetChanged();
                });
            }
        }
    });
    subnetScanner.execute();
    builder.adapter(listViewAdapter, null);
    return builder.build();
}
Also used : MaterialDialog(com.afollestad.materialdialogs.MaterialDialog) MainActivity(com.amaze.filemanager.ui.activities.MainActivity) ComputerParcelable(com.amaze.filemanager.utils.ComputerParcelable) SubnetScanner(com.amaze.filemanager.utils.SubnetScanner)

Example 9 with MainActivity

use of com.amaze.filemanager.ui.activities.MainActivity in project AmazeFileManager by TeamAmaze.

the class GeneralDialogCreation method showSignInWithGoogleDialog.

public static void showSignInWithGoogleDialog(@NonNull MainActivity mainActivity) {
    View customView = DialogSigninWithGoogleBinding.inflate(LayoutInflater.from(mainActivity)).getRoot();
    int accentColor = mainActivity.getAccent();
    MaterialDialog dialog = new MaterialDialog.Builder(mainActivity).customView(customView, false).title(R.string.signin_with_google_title).negativeText(android.R.string.cancel).negativeColor(accentColor).onNegative((dlg, which) -> dlg.dismiss()).build();
    customView.findViewById(R.id.signin_with_google).setOnClickListener(v -> {
        mainActivity.addConnection(OpenMode.GDRIVE);
        dialog.dismiss();
    });
    dialog.show();
}
Also used : RequiresApi(androidx.annotation.RequiresApi) LinearLayout(android.widget.LinearLayout) NonNull(androidx.annotation.NonNull) Uri(android.net.Uri) MainFragment(com.amaze.filemanager.ui.fragments.MainFragment) FileProperties(com.amaze.filemanager.filesystem.FileProperties) MainActivity(com.amaze.filemanager.ui.activities.MainActivity) SortHandler(com.amaze.filemanager.database.SortHandler) MDButton(com.afollestad.materialdialogs.internal.MDButton) CompressedHelper(com.amaze.filemanager.filesystem.compressed.CompressedHelper) GeneralSecurityException(java.security.GeneralSecurityException) RootHelper(com.amaze.filemanager.filesystem.RootHelper) CheckBox(android.widget.CheckBox) View(android.view.View) Button(android.widget.Button) DialogSigninWithGoogleBinding(com.amaze.filemanager.databinding.DialogSigninWithGoogleBinding) PieChart(com.github.mikephil.charting.charts.PieChart) Log(android.util.Log) PieData(com.github.mikephil.charting.data.PieData) LoadFolderSpaceDataTask(com.amaze.filemanager.asynchronous.asynctasks.LoadFolderSpaceDataTask) M(android.os.Build.VERSION_CODES.M) LayoutElementParcelable(com.amaze.filemanager.adapters.data.LayoutElementParcelable) AsyncTask(android.os.AsyncTask) Entry(com.github.mikephil.charting.data.Entry) Set(java.util.Set) InputType(android.text.InputType) ExtensionsKt(com.amaze.filemanager.ui.ExtensionsKt) FingerprintManager(android.hardware.fingerprint.FingerprintManager) FileUtils(com.amaze.filemanager.filesystem.files.FileUtils) AppCompatButton(androidx.appcompat.widget.AppCompatButton) Executors(java.util.concurrent.Executors) EncryptDecryptUtils(com.amaze.filemanager.filesystem.files.EncryptDecryptUtils) Objects(java.util.Objects) FileUtils.toHybridFileArrayList(com.amaze.filemanager.filesystem.files.FileUtils.toHybridFileArrayList) List(java.util.List) StringRes(androidx.annotation.StringRes) TextView(android.widget.TextView) Nullable(androidx.annotation.Nullable) HiddenAdapter(com.amaze.filemanager.adapters.HiddenAdapter) PREFERENCE_SORTBY_ONLY_THIS(com.amaze.filemanager.ui.fragments.preference_fragments.PreferencesConstants.PREFERENCE_SORTBY_ONLY_THIS) R(com.amaze.filemanager.R) MaterialDialog(com.afollestad.materialdialogs.MaterialDialog) CountItemsOrAndSizeTask(com.amaze.filemanager.asynchronous.asynctasks.CountItemsOrAndSizeTask) AppTheme(com.amaze.filemanager.ui.theme.AppTheme) AppConfig(com.amaze.filemanager.application.AppConfig) SimpleTextWatcher(com.amaze.filemanager.utils.SimpleTextWatcher) Legend(com.github.mikephil.charting.components.Legend) TextWatcher(android.text.TextWatcher) Typeface(android.graphics.Typeface) Context(android.content.Context) TextInputEditText(com.google.android.material.textfield.TextInputEditText) IValueFormatter(com.github.mikephil.charting.formatter.IValueFormatter) HybridFile(com.amaze.filemanager.filesystem.HybridFile) FingerprintHandler(com.amaze.filemanager.utils.FingerprintHandler) Intent(android.content.Intent) OpenMode(com.amaze.filemanager.file_operations.filesystem.OpenMode) Sort(com.amaze.filemanager.database.models.explorer.Sort) ArrayList(java.util.ArrayList) HashSet(java.util.HashSet) WarnableTextInputLayout(com.amaze.filemanager.ui.views.WarnableTextInputLayout) HybridFileParcelable(com.amaze.filemanager.filesystem.HybridFileParcelable) PieDataSet(com.github.mikephil.charting.data.PieDataSet) ShellNotRunningException(com.amaze.filemanager.file_operations.exceptions.ShellNotRunningException) PreferencesConstants(com.amaze.filemanager.ui.fragments.preference_fragments.PreferencesConstants) DataUtils(com.amaze.filemanager.utils.DataUtils) Toast(android.widget.Toast) Build(android.os.Build) ExecutorService(java.util.concurrent.ExecutorService) Formatter(android.text.format.Formatter) GenerateHashesTask(com.amaze.filemanager.asynchronous.asynctasks.GenerateHashesTask) SpannableString(android.text.SpannableString) LayoutInflater(android.view.LayoutInflater) IOException(java.io.IOException) DialogAction(com.afollestad.materialdialogs.DialogAction) TextUtils(android.text.TextUtils) ChangeFilePermissionsCommand(com.amaze.filemanager.filesystem.root.ChangeFilePermissionsCommand) WarnableTextInputValidator(com.amaze.filemanager.ui.views.WarnableTextInputValidator) File(java.io.File) Theme(com.afollestad.materialdialogs.Theme) Color(android.graphics.Color) Utils(com.amaze.filemanager.utils.Utils) SharedPreferences(android.content.SharedPreferences) CryptUtil(com.amaze.filemanager.filesystem.files.CryptUtil) ViewPortHandler(com.github.mikephil.charting.utils.ViewPortHandler) EncryptService(com.amaze.filemanager.asynchronous.services.EncryptService) ThemedActivity(com.amaze.filemanager.ui.activities.superclasses.ThemedActivity) PreferenceManager(androidx.preference.PreferenceManager) PieEntry(com.github.mikephil.charting.data.PieEntry) Collections(java.util.Collections) EditText(android.widget.EditText) MaterialDialog(com.afollestad.materialdialogs.MaterialDialog) View(android.view.View) TextView(android.widget.TextView)

Example 10 with MainActivity

use of com.amaze.filemanager.ui.activities.MainActivity in project AmazeFileManager by TeamAmaze.

the class GeneralDialogCreation method deleteFilesDialog.

@SuppressWarnings("ConstantConditions")
public static void deleteFilesDialog(@NonNull final Context context, @NonNull final MainActivity mainActivity, @NonNull final List<LayoutElementParcelable> positions, @NonNull AppTheme appTheme) {
    final ArrayList<HybridFileParcelable> itemsToDelete = new ArrayList<>();
    int accentColor = mainActivity.getAccent();
    // Build dialog with custom view layout and accent color.
    MaterialDialog dialog = new MaterialDialog.Builder(context).title(context.getString(R.string.dialog_delete_title)).customView(R.layout.dialog_delete, true).theme(appTheme.getMaterialDialogTheme()).negativeText(context.getString(R.string.cancel).toUpperCase()).positiveText(context.getString(R.string.delete).toUpperCase()).positiveColor(accentColor).negativeColor(accentColor).onPositive((dialog1, which) -> {
        Toast.makeText(context, context.getString(R.string.deleting), Toast.LENGTH_SHORT).show();
        mainActivity.mainActivityHelper.deleteFiles(itemsToDelete);
    }).build();
    // Get views from custom layout to set text values.
    final TextView categoryDirectories = dialog.getCustomView().findViewById(R.id.category_directories);
    final TextView categoryFiles = dialog.getCustomView().findViewById(R.id.category_files);
    final TextView listDirectories = dialog.getCustomView().findViewById(R.id.list_directories);
    final TextView listFiles = dialog.getCustomView().findViewById(R.id.list_files);
    final TextView total = dialog.getCustomView().findViewById(R.id.total);
    // Parse items to delete.
    new AsyncTask<Void, Object, Void>() {

        long sizeTotal = 0;

        StringBuilder files = new StringBuilder();

        StringBuilder directories = new StringBuilder();

        int counterDirectories = 0;

        int counterFiles = 0;

        @Override
        protected void onPreExecute() {
            super.onPreExecute();
            listFiles.setText(context.getString(R.string.loading));
            listDirectories.setText(context.getString(R.string.loading));
            total.setText(context.getString(R.string.loading));
        }

        @Override
        protected Void doInBackground(Void... params) {
            for (int i = 0; i < positions.size(); i++) {
                final LayoutElementParcelable layoutElement = positions.get(i);
                itemsToDelete.add(layoutElement.generateBaseFile());
                // Build list of directories to delete.
                if (layoutElement.isDirectory) {
                    // Don't add newline between category and list.
                    if (counterDirectories != 0) {
                        directories.append("\n");
                    }
                    long sizeDirectory = layoutElement.generateBaseFile().folderSize(context);
                    directories.append(++counterDirectories).append(". ").append(layoutElement.title).append(" (").append(Formatter.formatFileSize(context, sizeDirectory)).append(")");
                    sizeTotal += sizeDirectory;
                // Build list of files to delete.
                } else {
                    // Don't add newline between category and list.
                    if (counterFiles != 0) {
                        files.append("\n");
                    }
                    files.append(++counterFiles).append(". ").append(layoutElement.title).append(" (").append(layoutElement.size).append(")");
                    sizeTotal += layoutElement.longSize;
                }
                publishProgress(sizeTotal, counterFiles, counterDirectories, files, directories);
            }
            return null;
        }

        @Override
        protected void onProgressUpdate(Object... result) {
            super.onProgressUpdate(result);
            int tempCounterFiles = (int) result[1];
            int tempCounterDirectories = (int) result[2];
            long tempSizeTotal = (long) result[0];
            StringBuilder tempFilesStringBuilder = (StringBuilder) result[3];
            StringBuilder tempDirectoriesStringBuilder = (StringBuilder) result[4];
            updateViews(tempSizeTotal, tempFilesStringBuilder, tempDirectoriesStringBuilder, tempCounterFiles, tempCounterDirectories);
        }

        @Override
        protected void onPostExecute(Void aVoid) {
            super.onPostExecute(aVoid);
            updateViews(sizeTotal, files, directories, counterFiles, counterDirectories);
        }

        private void updateViews(long tempSizeTotal, StringBuilder filesStringBuilder, StringBuilder directoriesStringBuilder, int... values) {
            int tempCounterFiles = values[0];
            int tempCounterDirectories = values[1];
            // Hide category and list for directories when zero.
            if (tempCounterDirectories == 0) {
                if (tempCounterDirectories == 0) {
                    categoryDirectories.setVisibility(View.GONE);
                    listDirectories.setVisibility(View.GONE);
                }
            // Hide category and list for files when zero.
            }
            if (tempCounterFiles == 0) {
                categoryFiles.setVisibility(View.GONE);
                listFiles.setVisibility(View.GONE);
            }
            if (tempCounterDirectories != 0 || tempCounterFiles != 0) {
                listDirectories.setText(directoriesStringBuilder);
                if (listDirectories.getVisibility() != View.VISIBLE && tempCounterDirectories != 0)
                    listDirectories.setVisibility(View.VISIBLE);
                listFiles.setText(filesStringBuilder);
                if (listFiles.getVisibility() != View.VISIBLE && tempCounterFiles != 0)
                    listFiles.setVisibility(View.VISIBLE);
                if (categoryDirectories.getVisibility() != View.VISIBLE && tempCounterDirectories != 0)
                    categoryDirectories.setVisibility(View.VISIBLE);
                if (categoryFiles.getVisibility() != View.VISIBLE && tempCounterFiles != 0)
                    categoryFiles.setVisibility(View.VISIBLE);
            }
            // Show total size with at least one directory or file and size is not zero.
            if (tempCounterFiles + tempCounterDirectories > 1 && tempSizeTotal > 0) {
                StringBuilder builderTotal = new StringBuilder().append(context.getString(R.string.total)).append(" ").append(Formatter.formatFileSize(context, tempSizeTotal));
                total.setText(builderTotal);
                if (total.getVisibility() != View.VISIBLE)
                    total.setVisibility(View.VISIBLE);
            } else {
                total.setVisibility(View.GONE);
            }
        }
    }.execute();
    // Set category text color for Jelly Bean (API 16) and later.
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
        categoryDirectories.setTextColor(accentColor);
        categoryFiles.setTextColor(accentColor);
    }
    // Show dialog on screen.
    dialog.show();
}
Also used : RequiresApi(androidx.annotation.RequiresApi) LinearLayout(android.widget.LinearLayout) NonNull(androidx.annotation.NonNull) Uri(android.net.Uri) MainFragment(com.amaze.filemanager.ui.fragments.MainFragment) FileProperties(com.amaze.filemanager.filesystem.FileProperties) MainActivity(com.amaze.filemanager.ui.activities.MainActivity) SortHandler(com.amaze.filemanager.database.SortHandler) MDButton(com.afollestad.materialdialogs.internal.MDButton) CompressedHelper(com.amaze.filemanager.filesystem.compressed.CompressedHelper) GeneralSecurityException(java.security.GeneralSecurityException) RootHelper(com.amaze.filemanager.filesystem.RootHelper) CheckBox(android.widget.CheckBox) View(android.view.View) Button(android.widget.Button) DialogSigninWithGoogleBinding(com.amaze.filemanager.databinding.DialogSigninWithGoogleBinding) PieChart(com.github.mikephil.charting.charts.PieChart) Log(android.util.Log) PieData(com.github.mikephil.charting.data.PieData) LoadFolderSpaceDataTask(com.amaze.filemanager.asynchronous.asynctasks.LoadFolderSpaceDataTask) M(android.os.Build.VERSION_CODES.M) LayoutElementParcelable(com.amaze.filemanager.adapters.data.LayoutElementParcelable) AsyncTask(android.os.AsyncTask) Entry(com.github.mikephil.charting.data.Entry) Set(java.util.Set) InputType(android.text.InputType) ExtensionsKt(com.amaze.filemanager.ui.ExtensionsKt) FingerprintManager(android.hardware.fingerprint.FingerprintManager) FileUtils(com.amaze.filemanager.filesystem.files.FileUtils) AppCompatButton(androidx.appcompat.widget.AppCompatButton) Executors(java.util.concurrent.Executors) EncryptDecryptUtils(com.amaze.filemanager.filesystem.files.EncryptDecryptUtils) Objects(java.util.Objects) FileUtils.toHybridFileArrayList(com.amaze.filemanager.filesystem.files.FileUtils.toHybridFileArrayList) List(java.util.List) StringRes(androidx.annotation.StringRes) TextView(android.widget.TextView) Nullable(androidx.annotation.Nullable) HiddenAdapter(com.amaze.filemanager.adapters.HiddenAdapter) PREFERENCE_SORTBY_ONLY_THIS(com.amaze.filemanager.ui.fragments.preference_fragments.PreferencesConstants.PREFERENCE_SORTBY_ONLY_THIS) R(com.amaze.filemanager.R) MaterialDialog(com.afollestad.materialdialogs.MaterialDialog) CountItemsOrAndSizeTask(com.amaze.filemanager.asynchronous.asynctasks.CountItemsOrAndSizeTask) AppTheme(com.amaze.filemanager.ui.theme.AppTheme) AppConfig(com.amaze.filemanager.application.AppConfig) SimpleTextWatcher(com.amaze.filemanager.utils.SimpleTextWatcher) Legend(com.github.mikephil.charting.components.Legend) TextWatcher(android.text.TextWatcher) Typeface(android.graphics.Typeface) Context(android.content.Context) TextInputEditText(com.google.android.material.textfield.TextInputEditText) IValueFormatter(com.github.mikephil.charting.formatter.IValueFormatter) HybridFile(com.amaze.filemanager.filesystem.HybridFile) FingerprintHandler(com.amaze.filemanager.utils.FingerprintHandler) Intent(android.content.Intent) OpenMode(com.amaze.filemanager.file_operations.filesystem.OpenMode) Sort(com.amaze.filemanager.database.models.explorer.Sort) ArrayList(java.util.ArrayList) HashSet(java.util.HashSet) WarnableTextInputLayout(com.amaze.filemanager.ui.views.WarnableTextInputLayout) HybridFileParcelable(com.amaze.filemanager.filesystem.HybridFileParcelable) PieDataSet(com.github.mikephil.charting.data.PieDataSet) ShellNotRunningException(com.amaze.filemanager.file_operations.exceptions.ShellNotRunningException) PreferencesConstants(com.amaze.filemanager.ui.fragments.preference_fragments.PreferencesConstants) DataUtils(com.amaze.filemanager.utils.DataUtils) Toast(android.widget.Toast) Build(android.os.Build) ExecutorService(java.util.concurrent.ExecutorService) Formatter(android.text.format.Formatter) GenerateHashesTask(com.amaze.filemanager.asynchronous.asynctasks.GenerateHashesTask) SpannableString(android.text.SpannableString) LayoutInflater(android.view.LayoutInflater) IOException(java.io.IOException) DialogAction(com.afollestad.materialdialogs.DialogAction) TextUtils(android.text.TextUtils) ChangeFilePermissionsCommand(com.amaze.filemanager.filesystem.root.ChangeFilePermissionsCommand) WarnableTextInputValidator(com.amaze.filemanager.ui.views.WarnableTextInputValidator) File(java.io.File) Theme(com.afollestad.materialdialogs.Theme) Color(android.graphics.Color) Utils(com.amaze.filemanager.utils.Utils) SharedPreferences(android.content.SharedPreferences) CryptUtil(com.amaze.filemanager.filesystem.files.CryptUtil) ViewPortHandler(com.github.mikephil.charting.utils.ViewPortHandler) EncryptService(com.amaze.filemanager.asynchronous.services.EncryptService) ThemedActivity(com.amaze.filemanager.ui.activities.superclasses.ThemedActivity) PreferenceManager(androidx.preference.PreferenceManager) PieEntry(com.github.mikephil.charting.data.PieEntry) Collections(java.util.Collections) EditText(android.widget.EditText) MaterialDialog(com.afollestad.materialdialogs.MaterialDialog) FileUtils.toHybridFileArrayList(com.amaze.filemanager.filesystem.files.FileUtils.toHybridFileArrayList) ArrayList(java.util.ArrayList) LayoutElementParcelable(com.amaze.filemanager.adapters.data.LayoutElementParcelable) HybridFileParcelable(com.amaze.filemanager.filesystem.HybridFileParcelable) TextView(android.widget.TextView)

Aggregations

MainActivity (com.amaze.filemanager.ui.activities.MainActivity)20 HybridFile (com.amaze.filemanager.filesystem.HybridFile)9 ArrayList (java.util.ArrayList)9 View (android.view.View)8 NonNull (androidx.annotation.NonNull)8 R (com.amaze.filemanager.R)8 Intent (android.content.Intent)7 SharedPreferences (android.content.SharedPreferences)7 Log (android.util.Log)7 TextView (android.widget.TextView)7 MaterialDialog (com.afollestad.materialdialogs.MaterialDialog)7 OpenMode (com.amaze.filemanager.file_operations.filesystem.OpenMode)7 FileUtils (com.amaze.filemanager.filesystem.files.FileUtils)7 MainFragment (com.amaze.filemanager.ui.fragments.MainFragment)7 Utils (com.amaze.filemanager.utils.Utils)7 File (java.io.File)7 Objects (java.util.Objects)7 Context (android.content.Context)6 Color (android.graphics.Color)6 Uri (android.net.Uri)6