diff options
| author | 2024-11-05 13:08:56 +0000 | |
|---|---|---|
| committer | 2024-11-05 14:02:45 +0000 | |
| commit | a62c287329855d4239e0f0995766c72804d50355 (patch) | |
| tree | 57266e6f7eeecdfac465a51a70f2eb8255616c34 /api/coverage/tools | |
| parent | 538a83b372f6fef2e6ec2b00d5451a9b241267fe (diff) | |
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
Diffstat (limited to 'api/coverage/tools')
0 files changed, 0 insertions, 0 deletions