summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Bryce Lee <brycelee@google.com> 2024-07-15 14:28:04 -0700
committer Bryce Lee <brycelee@google.com> 2024-07-17 23:50:37 -0700
commit6376fc1c46e0f247d6e74eaf564445d12e68f7f0 (patch)
tree6c636153ffc1844bd93078f5d39fb7928e3135fa /api/api_test.go
parent59f4204a7be15575bf45e0a87d4b03f89ec45c07 (diff)
Fix dragging down notification shade handling over Glanceable Hub.
This changelist addresses a number of issues with notification shade touch handling in glanceable hub: - Properly handle cancel event to ShadeTouchHandler to end the touch session. not popping the touch session leads to a stale active session. - Recreating the touch input session on the last popped session. This resets any pilfering logic that was tied to the original session. - Only allow interactivity once the shade is expanded if the user is still interacting at full expansion. - Begin tracking touches on move as well as done in the GlancealbeHubContainerController, as the original stream might be canceled but replaced with another source. Test: atest GlanceableHubContainerControllerTest#lifecycle_doesNotResumeOnUserInteractivityOnceExpanded Test: atest TouchMonitorTest#testLastSessionPop_createsNewInputSession Test: atest ShadeTouchHandlerTest#testCancelMotionEvent_popsTouchSession Flag: EXEMPT bugfix Fixes: 353342159 Change-Id: Ide3f903cd44b1b4854adb3b32782e19946cecb20
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions