diff options
| author | 2024-12-16 17:50:23 +0000 | |
|---|---|---|
| committer | 2024-12-17 18:56:48 +0000 | |
| commit | 1b0f1a3c6d56fb9fd69ef178986ccd4055a83c48 (patch) | |
| tree | d4711e46b7453df3327441847faf091c99743af4 /libs/androidfw/AssetsProvider.cpp | |
| parent | 3b4c42ff0a7f8e42539e8c97bb579319c40da6e6 (diff) | |
Refactoring BackGestureTutorialScreen
Extracting logic from BackGestureTutorialScreen (and part of GestureTutorialScreen) into BackGestureScreenViewModel which can now be easily tested, yay!
GestureTutorialScreen.kt now has two similar Composables: GestureTutorialScreenNew (refactored) and GestureTutorialScreen. The plan is to move all gestures to using GestureTutorialScreenNew
and then delete GestureTutorialScreen which is doing too much.
BackGestureScreenViewModel is injected into activity straight away even before screen is needed but it doesn't do anything on its own and lifecycle of its flows is still managed by Composable lifecycle.
Next step: doing the same refactoring for other gesture screens.
Bug: 384509663
Test: BackGestureScreenViewModelTest
Flag: com.android.systemui.shared.new_touchpad_gestures_tutorial
Change-Id: I3e86f103dce5d8853687bf00d4c6546290931ee5
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions