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

Commit f43fda3d authored by Michal Brzezinski's avatar Michal Brzezinski
Browse files

Updating body text when gesture done successfully

Bug: 346579074
Test: finish gesture and see body text changing
Flag: com.android.systemui.shared.new_touchpad_gestures_tutorial
Change-Id: I1b2ee1df29ebf18d56f3bf14fd421e9d8cf2df33
parent 59190047
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -3646,7 +3646,10 @@
    <!-- Touchpad back gesture action name in tutorial [CHAR LIMIT=NONE] -->
    <string name="touchpad_back_gesture_action_title">Go back</string>
    <!-- Touchpad back gesture guidance in gestures tutorial [CHAR LIMIT=NONE] -->
    <string name="touchpad_back_gesture_guidance">To go back, swipe left or right using three fingers anywhere on the touchpad.</string>
    <string name="touchpad_back_gesture_guidance">To go back, swipe left or right using three fingers anywhere on the touchpad.\n\nYou can also use the keyboard shortcut
Action + ESC for this.</string>
    <!-- Text shown to the user after they complete back gesture tutorial [CHAR LIMIT=NONE] -->
    <string name="touchpad_back_gesture_finished">You completed the go back gesture.</string>
    <string name="touchpad_back_gesture_animation_content_description">Touchpad showing three fingers moving right and left</string>
    <string name="touchpad_back_gesture_screen_animation_content_description">Device screen showing animation for back gesture</string>

+3 −1
Original line number Diff line number Diff line
@@ -182,7 +182,9 @@ private fun GestureTutorialContent(
                    if (gestureState == FINISHED) R.string.touchpad_tutorial_gesture_done
                    else R.string.touchpad_back_gesture_action_title,
                titleColor = screenColors.titleColor,
                bodyTextId = R.string.touchpad_back_gesture_guidance,
                bodyTextId =
                    if (gestureState == FINISHED) R.string.touchpad_back_gesture_finished
                    else R.string.touchpad_back_gesture_guidance,
                modifier = Modifier.weight(1f)
            )
            Spacer(modifier = Modifier.width(76.dp))