summaryrefslogtreecommitdiff
path: root/api/coverage/tools
diff options
context:
space:
mode:
author Jordan Demeulenaere <jdemeulenaere@google.com> 2025-01-15 16:36:06 +0100
committer Jordan Demeulenaere <jdemeulenaere@google.com> 2025-01-21 12:04:10 +0100
commit113a70cabf94f913a1acc1abffc0766fc499c0ce (patch)
tree2a1f366b50a063dd772c212b6a18c52553b49715 /api/coverage/tools
parent2ae3798546b18855f181408adb87b6b1dff7bbd2 (diff)
Add OverscrollFactory parameter to STL.{scene,content} builders (1/2)
This CL makes STL use LocalOverscrollFactory when constructing the overscroll effects of each content, and exposes a new optional effectFactory parameter to the scene & overlay builders that will be used for that specific scene/overlay. This allows to easily reuse the default platform stretch effect and is a better API than forcing the hardcoded usage of OffsetOverscrollEffect. One important change in this CL is that I had to remove the orientation parameter from {Content,Offset}OverscrollEffect, given that Compose OverscrollFactory.createOverscrollEffect() does not have any such parameter. The strategy I used was to guess the orientation in which the effect is used by looking at the first non-null offset, making sure that the effect is only used in a single orientation that is never changing. I went ahead and specified the factory for dual shade so that we keep the default effect (stretching) on phones and use the offset overscroll on large screens. Bug: 378470603 Test: atest OverlayTest Test: Manual, played with Flexiglass with dual shade on & off Flag: com.android.systemui.scene_container Change-Id: I70bb9569e0fde97dffae789c8216def91ebfad51
Diffstat (limited to 'api/coverage/tools')
0 files changed, 0 insertions, 0 deletions