From 96ce6873dde6139bd94164f0aaa05927eb69f749 Mon Sep 17 00:00:00 2001 From: Saumya Prakash Date: Tue, 13 Feb 2024 00:35:37 +0000 Subject: [PATCH] Update back gesture tutorial strings to align with UX This change updates the feedback shown to users to align with the strings in figma for the back gesture tutorial. Fix: 300919987 Test: Went through both the redesigned and previous gesture tutorial and ensured the updated strings show up in the redesigned tutorial. Flag: LEGACY ENABLE_NEW_GESTURE_NAV_TUTORIAL ENABLED Change-Id: I057af6e8631b86ffaec8093ffbfbeae01c9d917c --- quickstep/res/values/strings.xml | 2 ++ .../quickstep/interaction/BackGestureTutorialController.java | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/quickstep/res/values/strings.xml b/quickstep/res/values/strings.xml index 325c25506b..14f615e240 100644 --- a/quickstep/res/values/strings.xml +++ b/quickstep/res/values/strings.xml @@ -105,6 +105,8 @@ Make sure you swipe from the right or left edge to the middle of the screen and let go You learned how to swipe from the right to go back. Next up, learn how to switch apps. + + You completed the go back gesture. Next up, learn how to switch apps. You completed the go back gesture diff --git a/quickstep/src/com/android/quickstep/interaction/BackGestureTutorialController.java b/quickstep/src/com/android/quickstep/interaction/BackGestureTutorialController.java index 404bca9795..6757cd88cc 100644 --- a/quickstep/src/com/android/quickstep/interaction/BackGestureTutorialController.java +++ b/quickstep/src/com/android/quickstep/interaction/BackGestureTutorialController.java @@ -85,7 +85,9 @@ final class BackGestureTutorialController extends TutorialController { public int getSuccessFeedbackSubtitle() { return mTutorialFragment.isAtFinalStep() ? R.string.back_gesture_feedback_complete_without_follow_up - : R.string.back_gesture_feedback_complete_with_overview_follow_up; + : ENABLE_NEW_GESTURE_NAV_TUTORIAL.get() + ? R.string.back_gesture_feedback_complete_with_follow_up + : R.string.back_gesture_feedback_complete_with_overview_follow_up; } @Override