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:
parent
fa02bdcf56
commit
4d9a2e871a
2 changed files with 0 additions and 24 deletions
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue