Fix "use secure credential" checkbox in Settings.
Uncheck the checkbox if the user cancels the password-entering dialog.
diff --git a/src/com/android/settings/SecuritySettings.java b/src/com/android/settings/SecuritySettings.java
index d3c0783..305fb7e 100644
--- a/src/com/android/settings/SecuritySettings.java
+++ b/src/com/android/settings/SecuritySettings.java
@@ -567,6 +567,10 @@
} else {
removeDialog(mDialogId);
+ if (mDialogId == CSTOR_UNLOCK_DIALOG) {
+ mAccessCheckBox.setChecked(isCstorUnlocked());
+ }
+
if (mCstorAddCredentialHelper != null) {
if (!isCstorInitialized()) {
showDialog(CSTOR_INIT_DIALOG);