Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 1e38076b authored by Michael Bestas's avatar Michael Bestas Committed by LuK1337
Browse files

fixup! Settings: Show single-touch wakeup setting on rear & front fps devices

Change-Id: I15921b910de233297ae6a43cf9ac0b33c1e1bf0a
parent ba302d75
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -173,7 +173,16 @@ public class FingerprintSettings extends SubSettings {
            if (manager == null || !manager.isHardwareDetected()) {
                return null;
            }
            if (manager.isPowerbuttonFps() && context.getResources().getBoolean(
            List<FingerprintSensorPropertiesInternal> sensorProperties =
                    manager.getSensorPropertiesInternal();
            boolean isUdfps = false;
            for (FingerprintSensorPropertiesInternal prop : sensorProperties) {
                if (prop.isAnyUdfpsType()) {
                    isUdfps = true;
                    break;
                }
            }
            if (!isUdfps && context.getResources().getBoolean(
                    org.lineageos.platform.internal.R.bool.config_fingerprintWakeAndUnlock)) {
                controllers.add(
                        new FingerprintUnlockCategoryController(