From c850dfac269918dafc2347b5e491c0d3954bb4e7 Mon Sep 17 00:00:00 2001 From: Riley Jones Date: Wed, 16 Oct 2024 18:58:35 +0000 Subject: [PATCH] Removes the A11y tutorial that displays on change to gesture navigation Switching to gesture navigation puts button mode in FAB, so there's no longer a need to show a gesture tutorial. Test: change navigation modes. Verify no tutorial is shown for either option Flag: android.provider.a11y_standalone_gesture_enabled Bug: 371027085 Change-Id: I71e33efea3e25d22b0bc41c33b17de11f9ef2d64 --- .../settings/gestures/SystemNavigationGestureSettings.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/android/settings/gestures/SystemNavigationGestureSettings.java b/src/com/android/settings/gestures/SystemNavigationGestureSettings.java index cfaee006d39..9b4da46a98d 100644 --- a/src/com/android/settings/gestures/SystemNavigationGestureSettings.java +++ b/src/com/android/settings/gestures/SystemNavigationGestureSettings.java @@ -243,7 +243,9 @@ public class SystemNavigationGestureSettings extends RadioButtonPickerFragment i protected boolean setDefaultKey(String key) { setCurrentSystemNavigationMode(mOverlayManager, key); setIllustrationVideo(mVideoPreference, key); - setGestureNavigationTutorialDialog(key); + if (!android.provider.Flags.a11yStandaloneGestureEnabled()) { + setGestureNavigationTutorialDialog(key); + } setIllustrationClickListener(mVideoPreference, key); return true; }