Merge pull request #8333 from osmandapp/Fix_ProfileAppearance

Fix absent edit profile name keyboard and profile icon selection for …
This commit is contained in:
vshcherb 2020-01-27 16:25:33 +01:00 committed by GitHub
commit 65985b39cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -113,6 +113,7 @@ public class ProfileAppearanceFragment extends BaseSettingsFragment {
profile.routeService = baseModeForNewProfile.getRouteService();
profile.locationIcon = baseModeForNewProfile.getLocationIcon();
profile.navigationIcon = baseModeForNewProfile.getNavigationIcon();
onAppModeChanged(ApplicationMode.valueOfStringKey(baseModeForNewProfile.getStringKey(), null));
} else {
profile.stringKey = getSelectedAppMode().getStringKey();
profile.parent = getSelectedAppMode().getParent();