Allow all UDFPS devices use the sensor while screen is off

Change-Id: I42f13398754be50f39dc250f03e8074c3ba64a28
This commit is contained in:
Michael Bestas 2025-03-06 16:55:41 +02:00 committed by Michael Bestas
parent 97c93a7017
commit 17edef282a
No known key found for this signature in database

View file

@ -691,7 +691,7 @@ public class FingerprintSettings extends SubSettings {
// |mRequireScreenOnToAuthPreferenceController.isChecked| is always checking the primary
// user instead of the user with |mUserId|.
if ((!isUdfps() && mFingerprintWakeAndUnlock) ||
(screenOffUnlockUdfps() && isUltrasnoicUdfps())) {
(screenOffUnlockUdfps() && isUdfps())) {
scrollToPreference(fpPrefKey);
addFingerprintUnlockCategory();
}
@ -758,7 +758,7 @@ public class FingerprintSettings extends SubSettings {
restToUnlockPreference.getOnPreferenceChangeListener());
}
setupFingerprintUnlockCategoryPreferencesForScreenOnToAuth();
} else if (screenOffUnlockUdfps() && isUltrasnoicUdfps()) {
} else if (screenOffUnlockUdfps() && isUdfps()) {
setupFingerprintUnlockCategoryPreferencesForScreenOffUnlock();
}
if (mFingerprintUnlockCategoryPreferenceController != null) {
@ -813,7 +813,7 @@ public class FingerprintSettings extends SubSettings {
private void updatePreferencesAfterFingerprintRemoved() {
updateAddPreference();
if ((!isUdfps() && mFingerprintWakeAndUnlock) ||
(screenOffUnlockUdfps() && isUltrasnoicUdfps())) {
(screenOffUnlockUdfps() && isUdfps())) {
updateFingerprintUnlockCategoryVisibility();
}
updatePreferences();
@ -1058,7 +1058,7 @@ public class FingerprintSettings extends SubSettings {
}
}
} else if (screenOffUnlockUdfps() && isUltrasnoicUdfps()) {
} else if (screenOffUnlockUdfps() && isUdfps()) {
for (AbstractPreferenceController controller : controllers) {
if (controller.getPreferenceKey() == KEY_FINGERPRINT_UNLOCK_CATEGORY) {
mFingerprintUnlockCategoryPreferenceController =