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

Commit 02606e31 authored by Peter_Liang's avatar Peter_Liang
Browse files

Fix the tutorial title is inconsistent with the description under Talkback.

Root cause: wrong condition.

Next: Remove the condition related to touch explore.

Bug: 155829440
Test: manual test
Change-Id: I85a01979d9dcc4bc87f9a54661119f79e94ea791
parent 9b940670
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -387,11 +387,11 @@ public final class AccessibilityGestureNavigationTutorial {
    private static CharSequence getSoftwareTitle(Context context) {
        final boolean isGestureNavigationEnabled =
                AccessibilityUtil.isGestureNavigateEnabled(context);
        final boolean isTouchExploreEnabled = AccessibilityUtil.isTouchExploreEnabled(context);
        final int resId = isGestureNavigationEnabled
                ? R.string.accessibility_tutorial_dialog_title_gesture
                : R.string.accessibility_tutorial_dialog_title_button;

        return (isGestureNavigationEnabled || isTouchExploreEnabled)
                ? context.getText(R.string.accessibility_tutorial_dialog_title_gesture)
                : context.getText(R.string.accessibility_tutorial_dialog_title_button);
        return context.getText(resId);
    }

    private static ImageView createSoftwareImage(Context context) {