mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Complete gesture nav sandbox for for UXR.
- Removed All set screens altogether. - Added "x" button to feedback view. This button now launches a dialog that allows the user to skip the tutorial. - Added a progress tracker to the feedback view. - Created a launch option to launch the back, home, then overview gesture tutorials in order. - Added a button in the feedback view to progress through the tutorial. - Updated tutorial animations to AnimatedVectorDrawables (with green accents). Bug: 148542211 Test: manual Change-Id: Icf3ec424141069895f97da74cd4ae881ff898d3f
This commit is contained in:
@@ -269,6 +269,20 @@ public class DeveloperOptionsFragment extends PreferenceFragmentCompat {
|
||||
}
|
||||
PreferenceCategory sandboxCategory = newCategory("Gesture Navigation Sandbox");
|
||||
sandboxCategory.setSummary("Learn and practice navigation gestures");
|
||||
Preference launchOnboardingTutorialPreference = new Preference(context);
|
||||
launchOnboardingTutorialPreference.setKey("launchOnboardingTutorial");
|
||||
launchOnboardingTutorialPreference.setTitle("Launch Onboarding Tutorial");
|
||||
launchOnboardingTutorialPreference.setSummary("Learn the basic navigation gestures.");
|
||||
launchOnboardingTutorialPreference.setOnPreferenceClickListener(preference -> {
|
||||
startActivity(launchSandboxIntent.putExtra(
|
||||
"tutorial_steps",
|
||||
new String[] {
|
||||
"LEFT_EDGE_BACK_NAVIGATION",
|
||||
"HOME_NAVIGATION",
|
||||
"OVERVIEW_NAVIGATION"}));
|
||||
return true;
|
||||
});
|
||||
sandboxCategory.addPreference(launchOnboardingTutorialPreference);
|
||||
Preference launchBackTutorialPreference = new Preference(context);
|
||||
launchBackTutorialPreference.setKey("launchBackTutorial");
|
||||
launchBackTutorialPreference.setTitle("Launch Back Tutorial");
|
||||
|
||||
Reference in New Issue
Block a user