diff --git a/OsmAnd/src/net/osmand/aidl/OsmandAidlApi.java b/OsmAnd/src/net/osmand/aidl/OsmandAidlApi.java index cdeb30e7c6..0cec2802de 100644 --- a/OsmAnd/src/net/osmand/aidl/OsmandAidlApi.java +++ b/OsmAnd/src/net/osmand/aidl/OsmandAidlApi.java @@ -1142,15 +1142,8 @@ public class OsmandAidlApi { if (f.exists()) { GpxDataItem item = app.getGpxDatabase().getItem(f); if (item != null && item.isApiImported()) { - new AsyncTask() { - - @Override - protected Void doInBackground(File... files) { - Algorithms.removeAllFiles(f); - app.getGpxDatabase().remove(f); - return null; - } - }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, f); + Algorithms.removeAllFiles(f); + app.getGpxDatabase().remove(f); } } }