Search in sources :

Example 1 with SearchAsyncTask

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);
}
Also used : SearchAsyncTask(com.amaze.filemanager.asynchronous.asynctasks.SearchAsyncTask) OpenMode(com.amaze.filemanager.utils.OpenMode)

Aggregations

SearchAsyncTask (com.amaze.filemanager.asynchronous.asynctasks.SearchAsyncTask)1 OpenMode (com.amaze.filemanager.utils.OpenMode)1