Fix "use secure credential" checkbox in Settings.

Uncheck the checkbox if the user cancels the password-entering dialog.
This commit is contained in:
Hung-ying Tyan
2009-07-16 15:24:42 +08:00
parent 599221c7bb
commit c3eaaad17e

View File

@@ -567,6 +567,10 @@ public class SecuritySettings extends PreferenceActivity implements
} else { } else {
removeDialog(mDialogId); removeDialog(mDialogId);
if (mDialogId == CSTOR_UNLOCK_DIALOG) {
mAccessCheckBox.setChecked(isCstorUnlocked());
}
if (mCstorAddCredentialHelper != null) { if (mCstorAddCredentialHelper != null) {
if (!isCstorInitialized()) { if (!isCstorInitialized()) {
showDialog(CSTOR_INIT_DIALOG); showDialog(CSTOR_INIT_DIALOG);