Update configure map screen on open. Fixes #1887 and fixes #1804

This commit is contained in:
GaidamakUA 2015-11-18 14:48:17 +02:00
parent 8a0778d236
commit 98af029f78

View file

@ -439,7 +439,7 @@ public class DashboardOnMap implements ObservableScrollViewCallbacks {
onScrollChanged(listView.getScrollY(), false, false);
}
if (refresh) {
refreshContent(false);
refreshContent(visibleType == DashboardType.CONFIGURE_MAP);
} else {
updateListAdapter();
updateListBackgroundHeight();
@ -505,7 +505,7 @@ public class DashboardOnMap implements ObservableScrollViewCallbacks {
public void refreshContent(boolean force) {
if (visibleType == DashboardType.WAYPOINTS || visibleType == DashboardType.WAYPOINTS_EDIT
|| visibleType == DashboardType.CONFIGURE_MAP || force) {
|| force) {
updateListAdapter();
} else {
listAdapter.notifyDataSetChanged();
@ -923,7 +923,7 @@ public class DashboardOnMap implements ObservableScrollViewCallbacks {
}
public static class DefaultShouldShow extends DashFragmentData.ShouldShowFunction {
public boolean shouldShow(OsmandSettings settings, MapActivity activity, String tag) {
return settings.registerBooleanPreference(SHOULD_SHOW + tag, true).makeGlobal().get();
}