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();
}
Aggregations