Merge "Fix bubble bar drag-to-dismiss target over the taskbar interruption" into main

This commit is contained in:
Mykola Podolian authored and Android (Google) Code Review committed 2025-04-18 10:43:22 -07:00
commit 93a7212f7e
1 file changed
+8
@@ -126,6 +126,14 @@ class TaskbarStashViaTouchController(val controllers: TaskbarControllers) : Touc
if (ev.action == MotionEvent.ACTION_OUTSIDE) {
controllers.taskbarStashController.updateAndAnimateTransientTaskbar(true)
} else if (controllers.taskbarViewController.isEventOverAnyItem(screenCoordinatesEv)) {
// TODO (b/411155437) remove this once BubbleDragController implements TouchController
val bubbleBarDragInProgress =
controllers.bubbleControllers
.map { it.bubbleDragController.isDragging }
.orElse(false)
if (bubbleBarDragInProgress) {
return false
}
swipeDownDetector.onTouchEvent(ev)
if (swipeDownDetector.isDraggingState) {
return true