Merge "Fix tapping magnification crash in vision settings setup screen"

This commit is contained in:
Menghan Li
2022-08-24 21:17:21 +00:00
committed by Android (Google) Code Review

View File

@@ -52,11 +52,17 @@ public class ToggleScreenMagnificationPreferenceFragmentForSetupWizard
*/
private void hidePreferenceSettingComponents() {
// Intro
mTopIntroPreference.setVisible(false);
if (mTopIntroPreference != null) {
mTopIntroPreference.setVisible(false);
}
// Setting of magnification type
mSettingsPreference.setVisible(false);
if (mSettingsPreference != null) {
mSettingsPreference.setVisible(false);
}
// Setting of following typing
mFollowingTypingSwitchPreference.setVisible(false);
if (mFollowingTypingSwitchPreference != null) {
mFollowingTypingSwitchPreference.setVisible(false);
}
}
@Override