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) {
|
protected OsmandSettings(OsmandApplication clientContext, SettingsAPI settinsAPI) {
|
||||||
ctx = clientContext;
|
ctx = clientContext;
|
||||||
this.settingsAPI = settinsAPI;
|
this.settingsAPI = settinsAPI;
|
||||||
currentMode = readApplicationMode();
|
|
||||||
initPrefs();
|
initPrefs();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initPrefs() {
|
private void initPrefs() {
|
||||||
globalPreferences = settingsAPI.getPreferenceObject(SHARED_PREFERENCES_NAME);
|
globalPreferences = settingsAPI.getPreferenceObject(SHARED_PREFERENCES_NAME);
|
||||||
defaultProfilePreferences = getProfilePreferences(ApplicationMode.DEFAULT);
|
defaultProfilePreferences = getProfilePreferences(ApplicationMode.DEFAULT);
|
||||||
|
currentMode = readApplicationMode();
|
||||||
profilePreferences = getProfilePreferences(currentMode);
|
profilePreferences = getProfilePreferences(currentMode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue