Prompt for lock pin on VPN screen when credential restriction is enabled.

If there is no lock pin set.

Bug: 19569109
Change-Id: I9ca17b61e72576f7b90b1598b2ace6e9d79b263a
This commit is contained in:
Julia Reynolds
2015-03-03 12:32:30 -05:00
parent a330b1a093
commit a12fc84877

View File

@@ -135,7 +135,13 @@ public final class CredentialStorage extends Activity {
handleUnlockOrInstall(); handleUnlockOrInstall();
} }
} else { } else {
finish(); // 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 {
finish();
}
} }
} }