Merge "Prompt for lock pin on VPN screen when credential restriction is enabled."
This commit is contained in:
committed by
Android (Google) Code Review
commit
e27fbc557f
@@ -134,10 +134,16 @@ public final class CredentialStorage extends Activity {
|
|||||||
// ACTION_UNLOCK also handled here in addition to ACTION_INSTALL
|
// ACTION_UNLOCK also handled here in addition to ACTION_INSTALL
|
||||||
handleUnlockOrInstall();
|
handleUnlockOrInstall();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// Users can set a screen lock if there is none even if they can't modify the
|
||||||
|
// credentials store.
|
||||||
|
if (ACTION_UNLOCK.equals(action) && mKeyStore.state() == KeyStore.State.UNINITIALIZED) {
|
||||||
|
ensureKeyGuard();
|
||||||
} else {
|
} else {
|
||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Based on the current state of the KeyStore and key guard, try to
|
* Based on the current state of the KeyStore and key guard, try to
|
||||||
|
Reference in New Issue
Block a user