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

Commit adea1cb1 authored by Tracy Zhou's avatar Tracy Zhou
Browse files

Do not show transient task bar upon swipe up on trackpad

Fixes: 264268943
Test: manual
Change-Id: Ia35ea9eb56fad612a08808724a7b3c4a08a0b6fb
parent 9a7c3b3c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@ package com.android.quickstep.inputconsumers;

import static android.view.MotionEvent.INVALID_POINTER_ID;

import static com.android.launcher3.Utilities.isTrackpadMotionEvent;
import static com.android.launcher3.Utilities.squaredHypot;
import static com.android.launcher3.config.FeatureFlags.ENABLE_TASKBAR_REVISED_THRESHOLDS;
import static com.android.launcher3.taskbar.TaskbarAutohideSuspendController.FLAG_AUTOHIDE_SUSPEND_TOUCHING;
@@ -107,7 +108,8 @@ public class TaskbarStashInputConsumer extends DelegateInputConsumer {
        if (mState != STATE_ACTIVE) {
            mDelegate.onMotionEvent(ev);

            if (mTaskbarActivityContext != null) {
            // Only show the transient task bar if the touch events are on the screen.
            if (mTaskbarActivityContext != null && !isTrackpadMotionEvent(ev)) {
                final float x = ev.getRawX();
                final float y = ev.getRawY();
                switch (ev.getAction()) {