diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/explore/ExploreTabFragment.java b/OsmAnd/src/net/osmand/plus/wikivoyage/explore/ExploreTabFragment.java index 8c95179b34..783bd8e215 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/explore/ExploreTabFragment.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/explore/ExploreTabFragment.java @@ -64,7 +64,7 @@ public class ExploreTabFragment extends BaseOsmAndFragment { popularDestinationsSearchTask.execute(); } - private static class PopularDestinationsSearchTask extends AsyncTask> { + private static class PopularDestinationsSearchTask extends AsyncTask> { private TravelDbHelper travelDbHelper; private WeakReference weakContext; @@ -84,14 +84,14 @@ public class ExploreTabFragment extends BaseOsmAndFragment { } @Override - protected void onPreExecute() { - super.onPreExecute(); - weakProgressBar.get().setVisibility(View.VISIBLE); + protected List doInBackground(Void... voids) { + return travelDbHelper.searchPopular(); } @Override - protected List doInBackground(ExploreRvAdapter... exploreRvAdapters) { - return travelDbHelper.searchPopular(); + protected void onPreExecute() { + super.onPreExecute(); + weakProgressBar.get().setVisibility(View.VISIBLE); } @Override