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
@@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user