From 8e231a2ce37278f350829647f3dad3b51cd4da61 Mon Sep 17 00:00:00 2001 From: Peter_Liang Date: Mon, 14 Feb 2022 09:21:07 +0800 Subject: [PATCH 1/4] =?UTF-8?q?New=20feature=20=E2=80=9CText=20and=20readi?= =?UTF-8?q?ng=20options=E2=80=9D=20for=20SetupWizard,=20Wallpaper,=20and?= =?UTF-8?q?=20Settings=20(17/n).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update the visibility of entries in the Vision Settings 1) Change the visibility Text and Reading Options preference as visible 2) Remove Font and Display size preferences Bug: 211503117 Test: manual test Change-Id: I9c12eaf4d35f98763c165e1d8ad232b378e044e7 --- .../accessibility_settings_for_setup_wizard.xml | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/res/xml/accessibility_settings_for_setup_wizard.xml b/res/xml/accessibility_settings_for_setup_wizard.xml index 3272ae54b77..78d8f721f31 100644 --- a/res/xml/accessibility_settings_for_setup_wizard.xml +++ b/res/xml/accessibility_settings_for_setup_wizard.xml @@ -26,23 +26,8 @@ android:key="text_reading_options" android:persistent="false" android:title="@string/accessibility_text_reading_options_title" - settings:isPreferenceVisible="false" settings:keywords="text_reading_options" /> - - - - Date: Mon, 14 Feb 2022 09:36:27 +0800 Subject: [PATCH 2/4] =?UTF-8?q?New=20feature=20=E2=80=9CText=20and=20readi?= =?UTF-8?q?ng=20options=E2=80=9D=20for=20SetupWizard,=20Wallpaper,=20and?= =?UTF-8?q?=20Settings=20(18/n).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update the visibility of Text and Reading Options in the Accessibility Settings Bug: 211503117 Test: manual test Change-Id: Icacdc64bc41a47653a1cc13333ea17a9872dabf2 --- res/xml/accessibility_settings.xml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/res/xml/accessibility_settings.xml b/res/xml/accessibility_settings.xml index fcdf47bcb10..8d5ebf6f7ad 100644 --- a/res/xml/accessibility_settings.xml +++ b/res/xml/accessibility_settings.xml @@ -36,14 +36,12 @@ android:persistent="false" android:title="@string/display_category_title"> - + android:title="@string/accessibility_text_reading_options_title" /> Date: Mon, 14 Feb 2022 10:42:08 +0800 Subject: [PATCH 3/4] =?UTF-8?q?New=20feature=20=E2=80=9CText=20and=20readi?= =?UTF-8?q?ng=20options=E2=80=9D=20for=20SetupWizard,=20Wallpaper,=20and?= =?UTF-8?q?=20Settings=20(19/n).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Rename the strings related to "text and display" to "color and motion" to avoid misunderstanding. Bug: 211503117 Test: manual test Change-Id: Icdca5ee03fb95a8531406a0f6ab07799a9dfb17c --- color-check-baseline.xml | 2 +- ..._text_and_display.xml => ic_color_and_motion.xml} | 0 res/values/strings.xml | 4 ++-- ...isplay.xml => accessibility_color_and_motion.xml} | 4 ++-- res/xml/accessibility_settings.xml | 8 ++++---- ...playFragment.java => ColorAndMotionFragment.java} | 12 ++++++------ ...mentTest.java => ColorAndMotionFragmentTest.java} | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) rename res/drawable/{ic_text_and_display.xml => ic_color_and_motion.xml} (100%) rename res/xml/{accessibility_text_and_display.xml => accessibility_color_and_motion.xml} (97%) rename src/com/android/settings/accessibility/{TextAndDisplayFragment.java => ColorAndMotionFragment.java} (91%) rename tests/robotests/src/com/android/settings/accessibility/{TextAndDisplayFragmentTest.java => ColorAndMotionFragmentTest.java} (89%) diff --git a/color-check-baseline.xml b/color-check-baseline.xml index 16658f8b3dc..ba4d2f69b1d 100644 --- a/color-check-baseline.xml +++ b/color-check-baseline.xml @@ -3736,7 +3736,7 @@ errorLine1=" android:color="@color/accessibility_feature_background"/>" errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> diff --git a/res/drawable/ic_text_and_display.xml b/res/drawable/ic_color_and_motion.xml similarity index 100% rename from res/drawable/ic_text_and_display.xml rename to res/drawable/ic_color_and_motion.xml diff --git a/res/values/strings.xml b/res/values/strings.xml index 36e1193e3ed..cade5211ce3 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -5150,8 +5150,8 @@ General Display - - Text and display + + Color and motion Turn screen darker diff --git a/res/xml/accessibility_text_and_display.xml b/res/xml/accessibility_color_and_motion.xml similarity index 97% rename from res/xml/accessibility_text_and_display.xml rename to res/xml/accessibility_color_and_motion.xml index 659acab5846..26448025845 100644 --- a/res/xml/accessibility_text_and_display.xml +++ b/res/xml/accessibility_color_and_motion.xml @@ -17,9 +17,9 @@ + android:title="@string/accessibility_color_and_motion_title"> niks = TextAndDisplayFragment.SEARCH_INDEX_DATA_PROVIDER + final List niks = ColorAndMotionFragment.SEARCH_INDEX_DATA_PROVIDER .getNonIndexableKeys(mContext); final List keys = XmlTestUtils.getKeysFromPreferenceXml(mContext, - R.xml.accessibility_text_and_display); + R.xml.accessibility_color_and_motion); assertThat(keys).containsAtLeastElementsIn(niks); } From a52a55f39c9a1241d1b8789ec4a58c373e2b4302 Mon Sep 17 00:00:00 2001 From: Peter_Liang Date: Mon, 14 Feb 2022 11:07:11 +0800 Subject: [PATCH 4/4] =?UTF-8?q?New=20feature=20=E2=80=9CText=20and=20readi?= =?UTF-8?q?ng=20options=E2=80=9D=20for=20SetupWizard,=20Wallpaper,=20and?= =?UTF-8?q?=20Settings=20(20/n).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove bold text, high contrast text, display size, and font size preferences in the color and motion layout. Bug: 211503117 Test: manual test Change-Id: I0d12bb65871fafc8901d3d1993e9fa85014ed645 --- res/xml/accessibility_color_and_motion.xml | 31 ---------------------- 1 file changed, 31 deletions(-) diff --git a/res/xml/accessibility_color_and_motion.xml b/res/xml/accessibility_color_and_motion.xml index 26448025845..f251d1e8763 100644 --- a/res/xml/accessibility_color_and_motion.xml +++ b/res/xml/accessibility_color_and_motion.xml @@ -21,31 +21,6 @@ android:persistent="false" android:title="@string/accessibility_color_and_motion_title"> - - - - - - - -