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

Commit 07a810f0 authored by Michal Brzezinski's avatar Michal Brzezinski
Browse files

Adding new SysUI state: SYSUI_STATE_TOUCHPAD_GESTURES_DISABLED

It will be used to disable touchpad gestures during tutorial

Test: None, state is not used yet
Bug: 345207568
Flag: NONE just adding new value, not used for now
Change-Id: Ifc7924132590fe5d142c99a1658bdabe92fa443b
parent c2e9ad25
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -122,6 +122,8 @@ public class QuickStepContract {
    public static final long SYSUI_STATE_STATUS_BAR_KEYGUARD_GOING_AWAY = 1L << 31;
    // Physical keyboard shortcuts helper is showing
    public static final long SYSUI_STATE_SHORTCUT_HELPER_SHOWING = 1L << 32;
    // Touchpad gestures are disabled
    public static final long SYSUI_STATE_TOUCHPAD_GESTURES_DISABLED = 1L << 33;

    // Mask for SystemUiStateFlags to isolate SYSUI_STATE_AWAKE and
    // SYSUI_STATE_WAKEFULNESS_TRANSITION, to match WAKEFULNESS_* constants
@@ -170,6 +172,7 @@ public class QuickStepContract {
            SYSUI_STATE_NOTIFICATION_PANEL_VISIBLE,
            SYSUI_STATE_STATUS_BAR_KEYGUARD_GOING_AWAY,
            SYSUI_STATE_SHORTCUT_HELPER_SHOWING,
            SYSUI_STATE_TOUCHPAD_GESTURES_DISABLED,
    })
    public @interface SystemUiStateFlags {}

@@ -271,6 +274,9 @@ public class QuickStepContract {
        if ((flags & SYSUI_STATE_SHORTCUT_HELPER_SHOWING) != 0) {
            str.add("shortcut_helper_showing");
        }
        if ((flags & SYSUI_STATE_TOUCHPAD_GESTURES_DISABLED) != 0) {
            str.add("touchpad_gestures_disabled");
        }

        return str.toString();
    }