resolved conflicts for merge of bbe409d3 to master

Change-Id: I5d64f8d628636f3621b765873aade25eca948576
This commit is contained in:
Kenny Root
2013-02-14 13:25:19 -08:00
2 changed files with 3 additions and 3 deletions

View File

@@ -407,9 +407,9 @@ public class SecuritySettings extends SettingsPreferenceFragment
Settings.System.TEXT_SHOW_PASSWORD, 1) != 0);
}
KeyStore.State state = KeyStore.getInstance().state();
if (mResetCredentials != null) {
mResetCredentials.setEnabled(state != KeyStore.State.UNINITIALIZED);
KeyStore keyStore = KeyStore.getInstance();
mResetCredentials.setEnabled(!keyStore.isUnlocked());
}
}

View File

@@ -155,7 +155,7 @@ public class VpnSettings extends SettingsPreferenceFragment implements
super.onResume();
// Check KeyStore here, so others do not need to deal with it.
if (mKeyStore.state() != KeyStore.State.UNLOCKED) {
if (!mKeyStore.isUnlocked()) {
if (!mUnlocking) {
// Let us unlock KeyStore. See you later!
Credentials.getInstance().unlock(getActivity());