Merge "KeyStore: stop using state()"

This commit is contained in:
Kenny Root
2013-02-14 20:18:09 +00:00
committed by Gerrit Code Review

View File

@@ -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;
}