KeyStore: stop using state()
Change-Id: Ia8fc945666c59c0b9a9bd6f890cc2a6b8859e1d4
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user