resolved conflicts for merge of bbe409d3
to master
Change-Id: I5d64f8d628636f3621b765873aade25eca948576
This commit is contained in:
@@ -407,9 +407,9 @@ public class SecuritySettings extends SettingsPreferenceFragment
|
|||||||
Settings.System.TEXT_SHOW_PASSWORD, 1) != 0);
|
Settings.System.TEXT_SHOW_PASSWORD, 1) != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
KeyStore.State state = KeyStore.getInstance().state();
|
|
||||||
if (mResetCredentials != null) {
|
if (mResetCredentials != null) {
|
||||||
mResetCredentials.setEnabled(state != KeyStore.State.UNINITIALIZED);
|
KeyStore keyStore = KeyStore.getInstance();
|
||||||
|
mResetCredentials.setEnabled(!keyStore.isUnlocked());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -155,7 +155,7 @@ public class VpnSettings extends SettingsPreferenceFragment implements
|
|||||||
super.onResume();
|
super.onResume();
|
||||||
|
|
||||||
// Check KeyStore here, so others do not need to deal with it.
|
// Check KeyStore here, so others do not need to deal with it.
|
||||||
if (mKeyStore.state() != KeyStore.State.UNLOCKED) {
|
if (!mKeyStore.isUnlocked()) {
|
||||||
if (!mUnlocking) {
|
if (!mUnlocking) {
|
||||||
// Let us unlock KeyStore. See you later!
|
// Let us unlock KeyStore. See you later!
|
||||||
Credentials.getInstance().unlock(getActivity());
|
Credentials.getInstance().unlock(getActivity());
|
||||||
|
Reference in New Issue
Block a user