Fix bug with reset
This commit is contained in:
parent
004a44b073
commit
5b1aff575d
3 changed files with 7 additions and 2 deletions
|
@ -359,7 +359,11 @@ public class OsmandSettings {
|
|||
|
||||
@Override
|
||||
public void resetToDefault(){
|
||||
set(getDefaultValue());
|
||||
T o = defaultValue;
|
||||
if(defaultValues != null && defaultValues.containsKey(currentMode)){
|
||||
o = defaultValues.get(currentMode);
|
||||
}
|
||||
set(o);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -279,6 +279,7 @@ public class EditPOIFilterActivity extends OsmandListActivity {
|
|||
filter.setTypeToAccept(model, false);
|
||||
helper.editPoiFilter(filter);
|
||||
}
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -246,7 +246,7 @@ public class MapWidgetRegistry {
|
|||
public boolean onContextMenuClick(ArrayAdapter<?> a, int itemId, int pos, boolean isChecked) {
|
||||
pref.set(!pref.get());
|
||||
map.updateApplicationModeSettings();
|
||||
a.notifyDataSetInvalidated();
|
||||
a.notifyDataSetChanged();;
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue