From 7fb14e1e54d00feb10f02e3495c0d63812a86c54 Mon Sep 17 00:00:00 2001 From: marcusge Date: Mon, 26 Feb 2024 18:09:27 +0000 Subject: [PATCH] [Accessibility] Migrate high text contrast under feature flag Add Maximize Text contrast into contrast screen and hide it in "Display size and text" under feature flag Test: manually Bug: 241805782 Flag: aconfig com.android.settings.accessibility.enable_color_contrast_control Change-Id: I69049a136beba00a311c3c94fc9a49b0219a870e --- res/values/strings.xml | 4 ++++ res/xml/accessibility_color_contrast.xml | 8 ++++++++ res/xml/accessibility_text_reading_options.xml | 4 +--- .../TextReadingPreferenceFragment.java | 15 +++++++++++---- 4 files changed, 24 insertions(+), 7 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 32a3e03d639..3405814ca63 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -4922,6 +4922,10 @@ High contrast text Change text color to black or white. Maximizes contrast with the background. + + Maximize text contrast + + Change text color to black or white to increase contrast with the background. Auto update screen magnification diff --git a/res/xml/accessibility_color_contrast.xml b/res/xml/accessibility_color_contrast.xml index 427481e28cf..67c939b6a43 100644 --- a/res/xml/accessibility_color_contrast.xml +++ b/res/xml/accessibility_color_contrast.xml @@ -30,6 +30,14 @@ android:layout="@layout/accessibility_color_contrast_selector" settings:controller="com.android.settings.accessibility.ContrastSelectorPreferenceController"/> + + + android:title="@string/accessibility_toggle_high_text_contrast_preference_title" />