Merge pull request #8509 from osmandapp/minor_fixes

Fix base app mode key
This commit is contained in:
max-klaus 2020-02-19 15:20:49 +03:00 committed by GitHub
commit 41c4361dba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -366,8 +366,8 @@ public class ProfileAppearanceFragment extends BaseSettingsFragment {
Bundle bundle = new Bundle();
fragment.setUsedOnMap(false);
fragment.setAppMode(getSelectedAppMode());
if (getSelectedAppMode() != null) {
bundle.putString(SELECTED_KEY, getSelectedAppMode().getStringKey());
if (changedProfile.parent != null) {
bundle.putString(SELECTED_KEY, changedProfile.parent.getStringKey());
}
bundle.putString(DIALOG_TYPE, TYPE_BASE_APP_PROFILE);
fragment.setArguments(bundle);