use of com.amaze.filemanager.asynchronous.asynctasks.SearchAsyncTask in project AmazeFileManager by TeamAmaze.
the class SearchWorkerFragment method onCreate.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setRetainInstance(true);
String mPath = getArguments().getString(KEY_PATH);
String mInput = getArguments().getString(KEY_INPUT);
OpenMode mOpenMode = OpenMode.getOpenMode(getArguments().getInt(KEY_OPEN_MODE));
boolean mRootMode = getArguments().getBoolean(KEY_ROOT_MODE);
boolean isRegexEnabled = getArguments().getBoolean(KEY_REGEX);
boolean isMatchesEnabled = getArguments().getBoolean(KEY_REGEX_MATCHES);
mSearchAsyncTask = new SearchAsyncTask(getActivity(), mCallbacks, mInput, mOpenMode, mRootMode, isRegexEnabled, isMatchesEnabled);
mSearchAsyncTask.execute(mPath);
}
Aggregations