Created
January 31, 2019 19:55
-
-
Save barron9/fe99d265f07ba17e66c188ead6920784 to your computer and use it in GitHub Desktop.
pastetask
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private class PasteTask extends AsyncTask<Void, Integer, Void> { | |
@Override | |
protected void onPreExecute() { | |
super.onPreExecute(); | |
} | |
protected Void doInBackground(Void... voids) { | |
if (categoryName == null || categoryName.isEmpty() || new File(presenter.getCurrentPath()).exists()) { | |
presenter.pasteFiles(false, false); | |
} | |
return null; | |
} | |
@Override | |
protected void onPostExecute(Void aVoid) { | |
if (categoryName == null || categoryName.isEmpty() || new File(presenter.getCurrentPath()).exists()) { | |
updateMod(ExplorerMode.NORMAL_MODE, -1); | |
} else { | |
makeSnackbar(getString(R.string.category_paste_error)); | |
} | |
presenter.refresh(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment