This commit is contained in:
PavelRatushny 2017-10-17 13:21:10 +03:00
parent 10f803efcf
commit 175c6bef53

View file

@ -182,7 +182,7 @@ public class AvailableGPXFragment extends OsmandExpandableListFragment {
if (!importing) { if (!importing) {
if (asyncLoader == null || asyncLoader.getResult() == null) { if (asyncLoader == null || asyncLoader.getResult() == null) {
asyncLoader = new LoadGpxTask(); asyncLoader = new LoadGpxTask();
asyncLoader.execute(getActivity()); asyncLoader.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
} else { } else {
allGpxAdapter.refreshSelected(); allGpxAdapter.refreshSelected();
allGpxAdapter.notifyDataSetChanged(); allGpxAdapter.notifyDataSetChanged();