Preference method setting label was not being updated properly

This commit is contained in:
Sergey Eremin
2017-06-02 12:11:27 +03:00
parent 9e2c26e103
commit e60df2f6ce

View File

@@ -28,7 +28,9 @@ class OnInstallationMethodChangeListener implements Preference.OnPreferenceChang
String oldValue = ((ListPreference) preference).getValue();
if (null != oldValue && !oldValue.equals(newValue)) {
if (PreferenceActivity.INSTALLATION_METHOD_PRIVILEGED.equals(newValue)) {
return checkPrivileged();
if (!checkPrivileged()) {
return false;
}
} else if (PreferenceActivity.INSTALLATION_METHOD_ROOT.equals(newValue)) {
new CheckSuTask(activity).execute();
}