Remove unnecessary Async Task

This commit is contained in:
Alexander Sytnyk 2018-01-30 15:22:30 +02:00
parent 4cb0a98e9b
commit f58c95d70a

View file

@ -1142,15 +1142,8 @@ public class OsmandAidlApi {
if (f.exists()) {
GpxDataItem item = app.getGpxDatabase().getItem(f);
if (item != null && item.isApiImported()) {
new AsyncTask<File, Void, Void>() {
@Override
protected Void doInBackground(File... files) {
Algorithms.removeAllFiles(f);
app.getGpxDatabase().remove(f);
return null;
}
}.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, f);
}
}
}