KeyStore: stop using state()
Change-Id: I721974fd95f8d1ab06a3fd1bbb4c9b4d9d1d7752
This commit is contained in:
@@ -3384,7 +3384,7 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
|||||||
// Tear down existing lockdown if profile was removed
|
// Tear down existing lockdown if profile was removed
|
||||||
mLockdownEnabled = LockdownVpnTracker.isEnabled();
|
mLockdownEnabled = LockdownVpnTracker.isEnabled();
|
||||||
if (mLockdownEnabled) {
|
if (mLockdownEnabled) {
|
||||||
if (mKeyStore.state() != KeyStore.State.UNLOCKED) {
|
if (!mKeyStore.isUnlocked()) {
|
||||||
Slog.w(TAG, "KeyStore locked; unable to create LockdownTracker");
|
Slog.w(TAG, "KeyStore locked; unable to create LockdownTracker");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user