+87
−0
packages/SystemUI/src/com/android/systemui/statusbar/notification/headsup/HeadsUpAnimator.kt
0 → 100644
+63
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Both StackScrollAnimator and StackScrollAlgorithm had the same calculation to determine where a HUN should appear from or disappear to. This CL extracts that calculation into a shared class. This will be useful for changing how a HUN animates in and out if the HUN came from a status bar notification chip tap (see b/393369891). Bug: 393369891 Bug: 364653005 Flag: com.android.systemui.notifications_hun_shared_animation_values Test: Verified scenarios in b/243302608#comment39 still work with flag on Test: atest StackScrollAlgorithmTest StackStateAnimatorTest HeadsUpAnimatorTest Change-Id: Ie4f3703722efd83240e87199f45e06777ffd301b