Fix that once the phone is rotated to portrait orientation, the "Use TalkBack" toggle is truncated.

Goals:
1. Extends the api of apply partner's customization padding style in the Settings widget "SettingsMainSwitchPreference" to dynamically adjust the padding depending on the SetupWizard library.
2. Use the function to avoid the button being truncated.

Bug: 231512916
Test: manual test
Change-Id: I951776185eb1616136d9caf3a60f9daea4da191a
This commit is contained in:
Peter_Liang
2022-05-13 15:58:57 +08:00
committed by PETER LIANG
parent 3198bd8cec
commit f659095c07
2 changed files with 20 additions and 0 deletions

View File

@@ -49,6 +49,8 @@ public class ToggleScreenReaderPreferenceFragmentForSetupWizard
if (mTopIntroPreference != null) {
mTopIntroPreference.setVisible(false);
}
mToggleServiceSwitchPreference.applyPartnerCustomizationPaddingStyle();
}
@Override