Settings: fix screen off udfps preference visibility

remove redundant resource check

Change-Id: Iea2f126907b4d03989e7e668467b9711ea432102
Signed-off-by: rmp22 <195054967+rmp22@users.noreply.github.com>
This commit is contained in:
rmp22
2025-08-04 08:51:26 +08:00
committed by Joey
parent 71476359e9
commit d6e7a53890

View File

@@ -732,8 +732,7 @@ public class FingerprintSettings extends SubSettings {
private boolean isScreenOffUnlcokSupported() {
if (isUdfps()) {
return getContext().getResources().getBoolean(
com.android.internal.R.bool.config_screen_off_udfps_enabled);
return screenOffUnlockUdfps();
} else if (isSfps()) {
return getContext().getResources().getBoolean(
org.lineageos.platform.internal.R.bool.config_fingerprintWakeAndUnlock);