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

Commit 49c37a9b authored by Johannes Gallmann's avatar Johannes Gallmann
Browse files

Add DEBUG_MISSING_GESTURE log to LauncherProxyService

Bug: 425652879
Test: presubmit
Flag: EXEMPT debug logging
Change-Id: I2d47fc429959367cfec03cdf3158effb3f10e9d1
parent 16b177a4
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
@@ -143,7 +143,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 =