Prior fix worked only sometimes, unclear why
This commit is contained in:
parent
4ae7acd3f4
commit
6130ec93d4
2 changed files with 12 additions and 0 deletions
|
@ -57,6 +57,12 @@ 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() {
|
||||
|
|
|
@ -58,6 +58,12 @@ 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
|
||||
|
|
Loading…
Reference in a new issue