From bdd3d42c74afebf8948e1eb7be4461fe0ca13b85 Mon Sep 17 00:00:00 2001 From: Chumva Date: Wed, 25 Apr 2018 19:10:23 +0300 Subject: [PATCH] fix doInBackground --- .../plus/wikivoyage/explore/ExploreTabFragment.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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