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

Skip to content
Commit ae04a4f4 authored by Shawn Lee's avatar Shawn Lee
Browse files

[flexiglass] Add Snoozeable HUN Placeholder and HUN touch handling

Creates a variant of HeadsUpNotificationSpace that can be swiped up off the screen. Currently, doing so triggers most of the side effects as in legacy, but not all (to be validated in a follow-up CL). In addition, when flexiglass is on, NSSLC creates an instance of HeadsUpTouchHelper with an empty impl for the NPVC interface, so that we can reuse the touch tracking by calling it in NSSLC's touch handling methods. The side effects that have been left unflagged in HeadsUpTouchHelper didn't seem to be broken, but it might be better to move them elsewhere later.

Bug: 340514839
Test: Verified HeadsUpTouchHelper internal state is updated correctly during swipes on HUNs via logging
Test: Verified NSSL dragging state is updated correctly via logging
Test: Verified dragging and flinging HUN placeholder over Gone scene upwards moves it off screen
Test: Verified dragging and flinging HUN placeholder downwards opens Shade scene
Test: Verified letting go of HUN placeholder before reaching thresholds animates it back to pinned position
Test: Verified changing directions while swiping HUN placeholder works as expected
Flag: com.android.systemui.scene_container
Change-Id: I62631f1f9dc8ff1e52cac2366ed310a6b3f0cc1f
parent 37230d65
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