Allow launching only one tutorial in touchpad/keyboard tutorial
Now INTENT_TUTORIAL_SCOPE_KEY can be used to start only single tutorial for contextual education. Compared to regular flow which always show all tutorials available for given peripheral. Two main changes: 1. Renaming INTENT_TUTORIAL_TYPE_KEY to INTENT_TUTORIAL_SCOPE_KEY 2. Adding ScreenSequence which determines if we should follow natural screen order or finish after first screen. Test: KeyboardTouchpadTutorialViewModelTest Test: manual using adb with broadcast e.g. adb shell am broadcast -a com.android.systemui.action.KEYBOARD_TOUCHPAD_TUTORIAL --es tutorial_scope "touchpad_home" Fixes: 368035146 Flag: com.android.systemui.shared.new_touchpad_gestures_tutorial Change-Id: Ife004584f73731b7c5aed4250721bb1f91ef65cc
Loading
Please register or sign in to comment