diff options
| author | 2024-12-12 11:20:02 +0000 | |
|---|---|---|
| committer | 2024-12-12 06:13:24 -0800 | |
| commit | 074541895ba910d495494fe6b5d41d37519012a9 (patch) | |
| tree | a75b097a550df7b9cd65cd7387764de3ecc3d3e0 /libs/androidfw/AssetsProvider.cpp | |
| parent | 1fcff7e036d11c3a15118ced8876aa65518c4595 (diff) | |
Adding first error state for touchpad tutorial
Adding first case for error state - when gesture is done with correct number of fingers but doesn't meet distance or velocity criteria.
1. UI part:
- Adding new strings for error states and new config entries to keep them
- Introducing new GestureUiState.Error and two new states for TutorialActionState: Error and InProgressAfterError
2. Business logic:
- Adding new GestureState.Error - for now only used in one case
The tricky part is keeping error state when in progress after error happens so that title text doesn't immediately change to back to it's previous text when progress starts again. That's why InProgressAfterError is introduced.
It's becoming clear that there's more and more logic in Compose code and it's harder to test (that's why StateTransitionsTest mimics logic in compose) so I'll try to extract all of that to new ViewModel soon - so that each screen has its own ViewModel.
Bug: 381831607
Flag: com.android.systemui.shared.new_touchpad_gestures_tutorial
Test: StateTransitionsTest
Test: ThreeFingerGestureRecognizerTest
Change-Id: Ia751b279d0e609b6289dc2e208b709725257f166
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions