Merge "Fix the tutorial title is inconsistent with the description under Talkback." into rvc-dev am: cb8be1de6f am: 9402a42f7d

Change-Id: Id305a4a33bab7f29ad3a88096fceff3ff164e002
This commit is contained in:
TreeHugger Robot
2020-05-06 17:59:20 +00:00
committed by Automerger Merge Worker

View File

@@ -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) {