Show PIN screen with all PINs, not just simple ones

Bug: 17194645
Change-Id: I8b8ccd2b7cf6dbfac567492387d4f4fd61258a34
This commit is contained in:
Paul Lawrence
2014-08-25 11:13:46 -07:00
parent 0db4f35e0b
commit 396ac76fd3

View File

@@ -767,7 +767,9 @@ public class LockPatternUtils {
if (userHandle == UserHandle.USER_OWNER) {
// Update the encryption password.
int type = computedQuality == DevicePolicyManager.PASSWORD_QUALITY_NUMERIC
? StorageManager.CRYPT_TYPE_PIN : StorageManager.CRYPT_TYPE_PASSWORD;
|| computedQuality == DevicePolicyManager.PASSWORD_QUALITY_NUMERIC_COMPLEX
? StorageManager.CRYPT_TYPE_PIN
: StorageManager.CRYPT_TYPE_PASSWORD;
updateEncryptionPassword(type, password);
}