Merge "Fix bubble bar drag-to-dismiss target over the taskbar interruption" into main
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user