Remove unnecessary Async Task
This commit is contained in:
parent
4cb0a98e9b
commit
f58c95d70a
1 changed files with 2 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue