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

Commit 217df7f6 authored by Johannes Gallmann's avatar Johannes Gallmann Committed by Android (Google) Code Review
Browse files

Merge "Add DEBUG_MISSING_GESTURE log to LauncherProxyService" into main

parents 8ef4d010 49c37a9b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -26,6 +26,8 @@ import static android.view.MotionEvent.ACTION_UP;
import static android.view.WindowManagerPolicyConstants.NAV_BAR_MODE_3BUTTON;
import static android.window.BackEvent.EDGE_NONE;

import static com.android.systemui.navigationbar.gestural.EdgeBackGestureHandler.DEBUG_MISSING_GESTURE;
import static com.android.systemui.navigationbar.gestural.EdgeBackGestureHandler.DEBUG_MISSING_GESTURE_TAG;
import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_AWAKE;
import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_BOUNCER_SHOWING;
import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_COMMUNAL_HUB_SHOWING;
@@ -345,6 +347,10 @@ public class LauncherProxyService implements CallbackController<LauncherProxyLis
        @Override
        public void onBackEvent(@Nullable KeyEvent keyEvent, int displayId) throws RemoteException {
            if (predictiveBackSwipeEdgeNoneApi() && mBackAnimation != null && keyEvent != null) {
                if (DEBUG_MISSING_GESTURE && keyEvent.isCanceled()) {
                    Log.d(DEBUG_MISSING_GESTURE_TAG,
                            "Cancel back [launcher key event]: " + keyEvent);
                }
                mBackAnimation.setTriggerBack(!keyEvent.isCanceled());
                mBackAnimation.onBackMotion(/* touchX */ 0, /* touchY */ 0, keyEvent.getAction(),
                        EDGE_NONE, displayId);
+1 −1
Original line number Diff line number Diff line
@@ -144,7 +144,7 @@ public class EdgeBackGestureHandler {
    private static final int MAX_NUM_LOGGED_PREDICTIONS = 10;
    private static final int MAX_NUM_LOGGED_GESTURES = 10;

    static final boolean DEBUG_MISSING_GESTURE = true;
    public static final boolean DEBUG_MISSING_GESTURE = true;
    public static final String DEBUG_MISSING_GESTURE_TAG = "NoBackGesture";

    private ISystemGestureExclusionListener mGestureExclusionListener =