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

Skip to content
Commit 1b0f1a3c authored by Michal Brzezinski's avatar Michal Brzezinski
Browse files

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
parent 3b4c42ff
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