Merge "Fix tapping magnification crash in vision settings setup screen" into tm-qpr-dev

This commit is contained in:
Menghan Li
2022-08-25 23:37:50 +00:00
committed by Android (Google) Code Review

View File

@@ -52,12 +52,18 @@ public class ToggleScreenMagnificationPreferenceFragmentForSetupWizard
*/ */
private void hidePreferenceSettingComponents() { private void hidePreferenceSettingComponents() {
// Intro // Intro
if (mTopIntroPreference != null) {
mTopIntroPreference.setVisible(false); mTopIntroPreference.setVisible(false);
}
// Setting of magnification type // Setting of magnification type
if (mSettingsPreference != null) {
mSettingsPreference.setVisible(false); mSettingsPreference.setVisible(false);
}
// Setting of following typing // Setting of following typing
if (mFollowingTypingSwitchPreference != null) {
mFollowingTypingSwitchPreference.setVisible(false); mFollowingTypingSwitchPreference.setVisible(false);
} }
}
@Override @Override
public RecyclerView onCreateRecyclerView(LayoutInflater inflater, ViewGroup parent, public RecyclerView onCreateRecyclerView(LayoutInflater inflater, ViewGroup parent,