parent
8a0778d236
commit
98af029f78
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue