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();
|
OsmandApplication app = (OsmandApplication) getApplication();
|
||||||
favouritesAdapter = new FavouritesAdapter(activity, app.getFavorites().getFavouritePoints());
|
favouritesAdapter = new FavouritesAdapter(activity, app.getFavorites().getFavouritePoints());
|
||||||
setListAdapter(favouritesAdapter);
|
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() {
|
private OsmandApplication getApplication() {
|
||||||
|
@ -92,12 +86,6 @@ public class FavouritesListFragment extends SherlockListFragment implements Sear
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
locationUpdate(location);
|
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
|
@Override
|
||||||
|
|
|
@ -58,12 +58,6 @@ public class DashUpdatesFragment extends DashBaseFragment {
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(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
|
@Override
|
||||||
|
@ -75,12 +69,6 @@ public class DashUpdatesFragment extends DashBaseFragment {
|
||||||
cancelButton = null;
|
cancelButton = null;
|
||||||
}
|
}
|
||||||
updatedDownloadsList(BaseDownloadActivity.downloadListIndexThread.getItemsToUpdate());
|
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) {
|
public void updatedDownloadsList(List<IndexItem> list) {
|
||||||
|
|
Loading…
Reference in a new issue