diff options
author | 2024-12-27 16:48:18 +0100 | |
---|---|---|
committer | 2025-01-03 17:10:49 +0000 | |
commit | 150e45970e8023747c0dca1df2db05121a6e1650 (patch) | |
tree | 39a9e8bbec8108d31d67938976d5c558f7e38179 /libs/androidfw/AssetsProvider.cpp | |
parent | d00d46e22dae09b398a452fb8ecc0321c34dcd1b (diff) |
1/n refactoring: splitting ViewModels into separate smaller classes
Splitting ViewModels into smaller more cohesive classes with extracted common logic:
- GestureRecognizerAdapter transforms callback based GestureRecognizer into Flow and substitutes GestureFlowAdapter
- GestureRecognizerProvider which hides complexity of observing changes in resources and refreshing GestureRecognizer
- TouchpadGestureResources extracts common code for accessing latest values for distance and velocity
In that new class structure ViewModels responsibility is only to transform business state into Ui state that is to collect latest GestureState from GestureRecognizerAdapter and transform it into GestureUiState.
Bug: 384509663
Test: all unit tests
Flag: com.android.systemui.shared.new_touchpad_gestures_tutorial
Change-Id: I2da7cbeb530a1d4de91746d22b8126fd74e7154b
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions