Fix app modes ui state
This commit is contained in:
parent
5522e37b13
commit
6e64bab407
1 changed files with 2 additions and 1 deletions
|
@ -184,13 +184,14 @@ public class MainSettingsFragment extends BaseSettingsFragment {
|
||||||
SwitchPreferenceEx pref = new SwitchPreferenceEx(app);
|
SwitchPreferenceEx pref = new SwitchPreferenceEx(app);
|
||||||
pref.setPersistent(false);
|
pref.setPersistent(false);
|
||||||
pref.setKey(applicationMode.getStringKey());
|
pref.setKey(applicationMode.getStringKey());
|
||||||
|
preferenceCategory.addPreference(pref);
|
||||||
|
|
||||||
pref.setIcon(getAppProfilesIcon(applicationMode, isAppProfileEnabled));
|
pref.setIcon(getAppProfilesIcon(applicationMode, isAppProfileEnabled));
|
||||||
pref.setTitle(applicationMode.toHumanString());
|
pref.setTitle(applicationMode.toHumanString());
|
||||||
pref.setSummary(getAppModeDescription(getContext(), applicationMode));
|
pref.setSummary(getAppModeDescription(getContext(), applicationMode));
|
||||||
pref.setChecked(isAppProfileEnabled);
|
pref.setChecked(isAppProfileEnabled);
|
||||||
pref.setLayoutResource(R.layout.preference_with_descr_dialog_and_switch);
|
pref.setLayoutResource(R.layout.preference_with_descr_dialog_and_switch);
|
||||||
pref.setFragment(ConfigureProfileFragment.class.getName());
|
pref.setFragment(ConfigureProfileFragment.class.getName());
|
||||||
preferenceCategory.addPreference(pref);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue