Application mode should be updated on SettingsAPI change
This commit is contained in:
parent
f254dedb18
commit
9cbd583ff0
1 changed files with 1 additions and 1 deletions
|
@ -110,13 +110,13 @@ public class OsmandSettings {
|
|||
protected OsmandSettings(OsmandApplication clientContext, SettingsAPI settinsAPI) {
|
||||
ctx = clientContext;
|
||||
this.settingsAPI = settinsAPI;
|
||||
currentMode = readApplicationMode();
|
||||
initPrefs();
|
||||
}
|
||||
|
||||
private void initPrefs() {
|
||||
globalPreferences = settingsAPI.getPreferenceObject(SHARED_PREFERENCES_NAME);
|
||||
defaultProfilePreferences = getProfilePreferences(ApplicationMode.DEFAULT);
|
||||
currentMode = readApplicationMode();
|
||||
profilePreferences = getProfilePreferences(currentMode);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue