STL improve Swipe definition API 1/2
Allows defining `Swipe` with direction and pointer type in a more
concise way.
Swipe.Down to SceneB,
Swipe(SwipeDirection.Down, pointersType = PointerType.Touch) to SceneC, // touch only
Swipe(pointersType = PointerType.Mouse, pointerDirection = SwipeDirection.Down) to SceneD, // mouse only
become:
Swipe.Down to SceneB,
Swipe.Down(pointersType = PointerType.Touch) to SceneC, // touch only
Swipe.Down(pointersType = PointerType.Mouse) to SceneD, // mouse only
This change introduces a new way to define Swipe objects by allowing the
direction to be specified directly, followed by optional parameters.
This improves readability and consistency compared to the previous
approach.
Test: No tests. Just a refactor.
Bug: 375119446
Flag: com.android.systemui.scene_container
Change-Id: Idf708fa4ce38b90c58ae001b46062e0f60737328
20 files changed