Add setting to disable PIN animation and password

Test: Unit - atest SettingsRoboTests
Test: Manual - Set PIN lock and enabled/disabled the setting to observe animation change during PIN entry
Bug: b/204799468
Merged-In: I587b993ef5515a075442e82ebafae88bebdffc20
Change-Id: I587b993ef5515a075442e82ebafae88bebdffc20
This commit is contained in:
Andreas Miko
2023-02-08 17:26:17 +00:00
parent d078d1f00a
commit 387b788b19
8 changed files with 186 additions and 19 deletions

View File

@@ -16,7 +16,6 @@
package com.android.settings.security.screenlock;
import android.app.admin.DevicePolicyManager;
import android.content.Context;
import androidx.preference.Preference;
@@ -58,9 +57,8 @@ public class PatternVisiblePreferenceController extends AbstractPreferenceContro
}
private boolean isPatternLock() {
return mLockPatternUtils.isSecure(mUserId)
&& mLockPatternUtils.getKeyguardStoredPasswordQuality(mUserId)
== DevicePolicyManager.PASSWORD_QUALITY_SOMETHING;
return mLockPatternUtils.getCredentialTypeForUser(mUserId)
== LockPatternUtils.CREDENTIAL_TYPE_PATTERN;
}
@Override