Allow all UDFPS devices use the sensor while screen is off
Change-Id: I42f13398754be50f39dc250f03e8074c3ba64a28
This commit is contained in:
parent
97c93a7017
commit
17edef282a
1 changed files with 4 additions and 4 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue