From 19631ec1b1687f0cdbd0e44b0bf91d1278aa6750 Mon Sep 17 00:00:00 2001 From: Peter_Liang Date: Mon, 14 Feb 2022 10:42:08 +0800 Subject: [PATCH] =?UTF-8?q?New=20feature=20=E2=80=9CText=20and=20reading?= =?UTF-8?q?=20options=E2=80=9D=20for=20SetupWizard,=20Wallpaper,=20and=20S?= =?UTF-8?q?ettings=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); }