fix(text preference): fix preview block ui broken in SUW
As previous cl ag/25185014 we increased the preview block horizontal padding when landscape mode. However, in setup wizard it uses GlifPreferenceLayout so the settings page only has half screen width when landscape mode, so the preview block ui is squished due to limited width. Also, setup wizard package has overlay the paddings to larger than our prevoius adjust. Therefore, we rollback the changes in accessibility_text_reading_preview.xml to get the default padding, then add checker to increase the paddings if needed at runtime. Bug: 309590083 Test: manually Test: atest TextReadingPreviewPreferenceTest Test: atest TextReadingPreferenceFragmentForSetupWizardTest Change-Id: Ib907f4182eed272b84a4ab6208ea2d8a89ba96c4
This commit is contained in:
@@ -62,7 +62,7 @@ public class TextReadingPreferenceFragment extends DashboardFragment {
|
||||
static final String BOLD_TEXT_KEY = "toggle_force_bold_text";
|
||||
static final String HIGH_TEXT_CONTRAST_KEY = "toggle_high_text_contrast_preference";
|
||||
static final String RESET_KEY = "reset";
|
||||
private static final String PREVIEW_KEY = "preview";
|
||||
static final String PREVIEW_KEY = "preview";
|
||||
private static final String NEED_RESET_SETTINGS = "need_reset_settings";
|
||||
private static final String LAST_PREVIEW_INDEX = "last_preview_index";
|
||||
private static final int UNKNOWN_INDEX = -1;
|
||||
|
Reference in New Issue
Block a user