diff --git a/OsmAnd/src/net/osmand/plus/activities/FavouritesListFragment.java b/OsmAnd/src/net/osmand/plus/activities/FavouritesListFragment.java index 400096c23f..b0d1f70c1c 100644 --- a/OsmAnd/src/net/osmand/plus/activities/FavouritesListFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/FavouritesListFragment.java @@ -57,12 +57,6 @@ public class FavouritesListFragment extends SherlockListFragment implements Sear OsmandApplication app = (OsmandApplication) getApplication(); favouritesAdapter = new FavouritesAdapter(activity, app.getFavorites().getFavouritePoints()); setListAdapter(favouritesAdapter); - - //Ckeck if this fixes that lists are still sometimes empty when returning from the map screen - View view = getView(); - if (view != null) { - view.invalidate(); - } } private OsmandApplication getApplication() { @@ -92,12 +86,6 @@ public class FavouritesListFragment extends SherlockListFragment implements Sear } } locationUpdate(location); - - //This fixes the "all lists are empty when returning to the Dashboard" issue, but should likely be placed more centrally, like in MainMenuActivity? - View view = getView(); - if (view != null) { - view.invalidate(); - } } @Override diff --git a/OsmAnd/src/net/osmand/plus/dashboard/DashUpdatesFragment.java b/OsmAnd/src/net/osmand/plus/dashboard/DashUpdatesFragment.java index 5eb1a35e5b..660bad87d2 100644 --- a/OsmAnd/src/net/osmand/plus/dashboard/DashUpdatesFragment.java +++ b/OsmAnd/src/net/osmand/plus/dashboard/DashUpdatesFragment.java @@ -58,12 +58,6 @@ public class DashUpdatesFragment extends DashBaseFragment { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - - //Ckeck if this fixes that lists are still sometimes empty when returning from the map screen - View view = getView(); - if (view != null) { - view.invalidate(); - } } @Override @@ -75,12 +69,6 @@ public class DashUpdatesFragment extends DashBaseFragment { cancelButton = null; } updatedDownloadsList(BaseDownloadActivity.downloadListIndexThread.getItemsToUpdate()); - - //This fixes the "all lists are empty when returning to the Dashboard" issue, but should likely be placed more centrally, like in MainMenuActivity? - View view = getView(); - if (view != null) { - view.invalidate(); - } } public void updatedDownloadsList(List list) {