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

Commit 4f3e7186 authored by David Padlipsky's avatar David Padlipsky
Browse files

Acceleration should be enabled by default when flag is disabled

When the pointer acceleration flag is disabled, acceleration
should be considered enabled as that is the default.

Bug: 394096969
Test: Manual
Flag: com.android.hardware.input.pointer_acceleration
Change-Id: I9706c0615b001e80f5c2138c26bff040cd8275c2
parent 1e94bbb1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -392,7 +392,7 @@ public class InputSettings {
     */
    public static boolean isTouchpadAccelerationEnabled(@NonNull Context context) {
        if (!isPointerAccelerationFeatureFlagEnabled()) {
            return false;
            return true;
        }

        return Settings.System.getIntForUser(context.getContentResolver(),
@@ -839,7 +839,7 @@ public class InputSettings {
     */
    public static boolean isMousePointerAccelerationEnabled(@NonNull Context context) {
        if (!isPointerAccelerationFeatureFlagEnabled()) {
            return false;
            return true;
        }

        return Settings.System.getIntForUser(context.getContentResolver(),