Merge "Disable clear credential option when disallowed by admin." into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
fd9f4511d6
@@ -513,7 +513,7 @@ public class SecuritySettings extends SettingsPreferenceFragment
|
|||||||
Settings.System.TEXT_SHOW_PASSWORD, 1) != 0);
|
Settings.System.TEXT_SHOW_PASSWORD, 1) != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mResetCredentials != null) {
|
if (mResetCredentials != null && !mResetCredentials.isDisabledByAdmin()) {
|
||||||
mResetCredentials.setEnabled(!mKeyStore.isEmpty());
|
mResetCredentials.setEnabled(!mKeyStore.isEmpty());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user