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
|
||||
mLockdownEnabled = LockdownVpnTracker.isEnabled();
|
||||
if (mLockdownEnabled) {
|
||||
if (mKeyStore.state() != KeyStore.State.UNLOCKED) {
|
||||
if (!mKeyStore.isUnlocked()) {
|
||||
Slog.w(TAG, "KeyStore locked; unable to create LockdownTracker");
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user