Remove AsyncTask utility methods

This commit is contained in:
veyndan 2017-03-24 04:59:52 +00:00
parent ef9799ec07
commit 36fe8e3089
6 changed files with 9 additions and 34 deletions

View file

@ -97,7 +97,7 @@ public class UploadController {
contribution.setLicense(license);
//FIXME: Add permission request here. Only executeAsyncTask if permission has been granted
Utils.executeAsyncTask(new AsyncTask<Void, Void, Contribution>() {
new AsyncTask<Void, Void, Contribution>() {
// Fills up missing information about Contributions
// Only does things that involve some form of IO
@ -162,6 +162,6 @@ public class UploadController {
uploadService.queue(UploadService.ACTION_UPLOAD_FILE, contribution);
onComplete.onUploadStarted(contribution);
}
});
}.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
}