Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6376fc1c authored by Bryce Lee's avatar Bryce Lee
Browse files

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
parent 59f4204a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment