End icon alignment early when touching down during 3 button anim to home

This will allow Hotseat to handle the touch during the transition.

Test: manually touch Hotseat in pinned/transient/3-button taskbar during
the transition to home, ensure Hotseat handles it in all cases
Flag: EXEMPT bug fix
Fixes: 368419997

Change-Id: I3d998876ed4d8423bdb4fd48fa0d55f719da8d01
This commit is contained in:
Tony Wickham committed 2024-11-15 22:17:50 +00:00
1 parent a2603e829a
commit 5903216275
5 files changed
+39 -3

No files matched your search

@@ -23,6 +23,7 @@ import android.graphics.Canvas;
import android.graphics.Point;
import android.graphics.Rect;
import android.os.SystemProperties;
import android.view.MotionEvent;
import android.view.ViewTreeObserver;
import com.android.launcher3.DeviceProfile;
@@ -325,5 +326,15 @@ public class TaskbarDragLayerController implements TaskbarControllers.LoggableTa
}
mControllers.taskbarInsetsController.drawDebugTouchableRegionBounds(canvas);
}
/** Handles any touch event before it is dispatched to the rest of TaskbarDragLayer. */
public void onDispatchTouchEvent(MotionEvent ev) {
if (mActivity.isThreeButtonNav() && ev.getAction() == MotionEvent.ACTION_OUTSIDE
&& mControllers.uiController.isAnimatingToHotseat()) {
// When touching during animation to home, jump to the end so Hotseat can handle
// the touch. (Gesture Navigation handles this in AbsSwipeUpHandler.)
mControllers.uiController.endAnimationToHotseat();
}
}
}
}