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
6 files changed