Merge pull request #8467 from osmandapp/prefs_fixes
Fix custom parent UI update
This commit is contained in:
commit
2611588294
1 changed files with 2 additions and 5 deletions
|
@ -634,11 +634,8 @@ public class ProfileAppearanceFragment extends BaseSettingsFragment {
|
|||
}
|
||||
|
||||
private void setupBaseProfileView(String stringKey) {
|
||||
for (ApplicationMode am : ApplicationMode.getDefaultValues()) {
|
||||
if (am.getStringKey().equals(stringKey)) {
|
||||
baseProfileName.setText(Algorithms.capitalizeFirstLetter(am.toHumanString()));
|
||||
}
|
||||
}
|
||||
ApplicationMode mode = ApplicationMode.valueOfStringKey(stringKey, ApplicationMode.DEFAULT);
|
||||
baseProfileName.setText(Algorithms.capitalizeFirstLetter(mode.toHumanString()));
|
||||
}
|
||||
|
||||
private boolean saveProfile() {
|
||||
|
|
Loading…
Reference in a new issue