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

Commit 5755c77f authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "InputSettings: remove touchpad tap dragging flag" into main

parents 2692358b dd27bd6b
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
@@ -28,7 +28,6 @@ import static com.android.hardware.input.Flags.keyboardA11yStickyKeysFlag;
import static com.android.hardware.input.Flags.mouseReverseVerticalScrolling;
import static com.android.hardware.input.Flags.mouseSwapPrimaryButton;
import static com.android.hardware.input.Flags.touchpadSystemGestureDisable;
import static com.android.hardware.input.Flags.touchpadTapDragging;
import static com.android.hardware.input.Flags.touchpadThreeFingerTapShortcut;
import static com.android.hardware.input.Flags.touchpadVisualizer;
import static com.android.hardware.input.Flags.useKeyGestureEventHandler;
@@ -365,15 +364,6 @@ public class InputSettings {
                UserHandle.USER_CURRENT);
    }

    /**
     * Returns true if the feature flag for touchpad tap dragging is enabled.
     *
     * @hide
     */
    public static boolean isTouchpadTapDraggingFeatureFlagEnabled() {
        return touchpadTapDragging();
    }

    /**
     * Returns true if the feature flag for disabling system gestures on touchpads is enabled.
     *
@@ -461,9 +451,6 @@ public class InputSettings {
     * @hide
     */
    public static boolean useTouchpadTapDragging(@NonNull Context context) {
        if (!isTouchpadTapDraggingFeatureFlagEnabled()) {
            return false;
        }
        return Settings.System.getIntForUser(context.getContentResolver(),
                Settings.System.TOUCHPAD_TAP_DRAGGING, 0, UserHandle.USER_CURRENT) == 1;
    }
@@ -480,9 +467,6 @@ public class InputSettings {
     */
    @RequiresPermission(Manifest.permission.WRITE_SETTINGS)
    public static void setTouchpadTapDragging(@NonNull Context context, boolean enabled) {
        if (!isTouchpadTapDraggingFeatureFlagEnabled()) {
            return;
        }
        Settings.System.putIntForUser(context.getContentResolver(),
                Settings.System.TOUCHPAD_TAP_DRAGGING, enabled ? 1 : 0,
                UserHandle.USER_CURRENT);
+0 −7
Original line number Diff line number Diff line
@@ -35,13 +35,6 @@ flag {
    bug: "294546335"
}

flag {
    namespace: "input_native"
    name: "touchpad_tap_dragging"
    description: "Offers a setting to enable touchpad tap dragging"
    bug: "321978150"
}

flag {
    namespace: "input_native"
    name: "keyboard_glyph_map"