Search in sources :

Example 1 with ModeCallback

use of net.micode.fileexplorer.FileListItem.ModeCallback in project FileExplorer by MiCode.

the class FileViewInteractionHub method onOperationSelectAll.

public void onOperationSelectAll() {
    mCheckedFileNameList.clear();
    for (FileInfo f : mFileViewListener.getAllFiles()) {
        f.Selected = true;
        mCheckedFileNameList.add(f);
    }
    FileExplorerTabActivity fileExplorerTabActivity = (FileExplorerTabActivity) mContext;
    ActionMode mode = fileExplorerTabActivity.getActionMode();
    if (mode == null) {
        mode = fileExplorerTabActivity.startActionMode(new ModeCallback(mContext, this));
        fileExplorerTabActivity.setActionMode(mode);
        Util.updateActionModeTitle(mode, mContext, getSelectedFileList().size());
    }
    mFileViewListener.onDataChanged();
}
Also used : ActionMode(android.view.ActionMode) ModeCallback(net.micode.fileexplorer.FileListItem.ModeCallback)

Aggregations

ActionMode (android.view.ActionMode)1 ModeCallback (net.micode.fileexplorer.FileListItem.ModeCallback)1