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

Commit e89246a4 authored by Michael W's avatar Michael W Committed by Michael Bestas
Browse files

Settings: Udfps: Use same ambient config logic as others

Others like DoubleTapScreenPreferenceController or
PickupGesturePreferenceController use getAmbientConfig() in
getAvailabilityStatus - looks like they experienced issues
with using the config set via setConfig() as well

Fixes: Attempt to invoke virtual method
'java.lang.String android.hardware.display.AmbientDisplayConfiguration.udfpsLongPressSensorType()'
on a null object reference

Change-Id: I68c94bd295e324cc8668dd06b8178876787f1dc6
parent 3df94352
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ public class ScreenOffUdfpsPreferenceController extends GesturePreferenceControl
    @Override
    public int getAvailabilityStatus() {
        // No hardware support for Screen-Off UDFPS
        if (!screenOffUdfpsAvailable(mAmbientConfig)) {
        if (!screenOffUdfpsAvailable(getAmbientConfig())) {
            return UNSUPPORTED_ON_DEVICE;
        }