From 6be63770791cc1d1cd09787f576d301f57d4777f Mon Sep 17 00:00:00 2001 From: menghanli Date: Mon, 17 May 2021 12:44:29 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20=E2=80=9CLearn=20more=E2=80=9D=20link=20n?= =?UTF-8?q?ot=20working=20on=20Magnification=20shortcut=20page=20from=20Vi?= =?UTF-8?q?sion=20Settings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Root cause: It does not allow to start another activity before SuW Completed. We should not show link for users. Solution: Remove the link Bug: 188034493 Test: Manual testing Change-Id: I25d3eb3d02a2b992411ea7b73308f3e3503cd70a --- ...ScreenMagnificationPreferenceFragmentForSetupWizard.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/com/android/settings/accessibility/ToggleScreenMagnificationPreferenceFragmentForSetupWizard.java b/src/com/android/settings/accessibility/ToggleScreenMagnificationPreferenceFragmentForSetupWizard.java index 86ead5c681c..016ac059873 100644 --- a/src/com/android/settings/accessibility/ToggleScreenMagnificationPreferenceFragmentForSetupWizard.java +++ b/src/com/android/settings/accessibility/ToggleScreenMagnificationPreferenceFragmentForSetupWizard.java @@ -44,6 +44,12 @@ public class ToggleScreenMagnificationPreferenceFragmentForSetupWizard super.onStop(); } + @Override + public int getHelpResource() { + // Hides help center in action bar and footer bar in SuW + return 0; + } + @Override public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState);