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

Skip to content
Commit a62c2873 authored by omarmt's avatar omarmt
Browse files

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
parent 538a83b3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment