Merge pull request #8467 from osmandapp/prefs_fixes

Fix custom parent UI update
This commit is contained in:
max-klaus 2020-02-15 11:33:48 +03:00 committed by GitHub
commit 2611588294
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -634,11 +634,8 @@ public class ProfileAppearanceFragment extends BaseSettingsFragment {
} }
private void setupBaseProfileView(String stringKey) { private void setupBaseProfileView(String stringKey) {
for (ApplicationMode am : ApplicationMode.getDefaultValues()) { ApplicationMode mode = ApplicationMode.valueOfStringKey(stringKey, ApplicationMode.DEFAULT);
if (am.getStringKey().equals(stringKey)) { baseProfileName.setText(Algorithms.capitalizeFirstLetter(mode.toHumanString()));
baseProfileName.setText(Algorithms.capitalizeFirstLetter(am.toHumanString()));
}
}
} }
private boolean saveProfile() { private boolean saveProfile() {