All invalidate() only solved the empty-list issue sometimes, while it still appeared on other occasions. So back out to make way for a better fix

This commit is contained in:
sonora 2015-01-01 13:27:53 +01:00
parent fa02bdcf56
commit 4d9a2e871a
2 changed files with 0 additions and 24 deletions

View file

@ -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

View file

@ -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<IndexItem> list) {