Application mode should be updated on SettingsAPI change

This commit is contained in:
unknown 2014-05-23 23:34:55 +03:00
parent f254dedb18
commit 9cbd583ff0

View file

@ -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);
}