From 5460a244bef7bf84cc053e6a609997d0b9b4eee7 Mon Sep 17 00:00:00 2001 From: Chun-Ku Lin Date: Thu, 1 Aug 2024 22:33:11 +0000 Subject: [PATCH] Don't truncate the title in Color Correction options By default, the SelectorWithWidgetPreference hard coded the maxlines of the title to be 2 lines. Updating the SelectorWithWidgetPreference to accept changes on maxlines on title. Set titleMaxLines as 2147483647 (Integer.MAX_VALUE) as there is no alternative to clear the maxLines that are already set by the Preference Bug: 356726764 Test: manually tested the color correction screen in Deutsch Test: verify the Wifi Hotspot sceurity screen is not affected by this change (still have 2 as the max lines of the title) Flag: EXEMPT resource only Change-Id: I1414b6212b75d3f28bef6aad50a31ea7861d5811 --- res/values/integers.xml | 2 ++ res/xml/accessibility_daltonizer_settings.xml | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/res/values/integers.xml b/res/values/integers.xml index 5427cdd0d35..5631e401ba1 100644 --- a/res/values/integers.xml +++ b/res/values/integers.xml @@ -40,4 +40,6 @@ 0 3 + + 2147483647 diff --git a/res/xml/accessibility_daltonizer_settings.xml b/res/xml/accessibility_daltonizer_settings.xml index 8dc5f3b5ab4..db961675c29 100644 --- a/res/xml/accessibility_daltonizer_settings.xml +++ b/res/xml/accessibility_daltonizer_settings.xml @@ -33,6 +33,7 @@ android:persistent="false" android:summary="@string/daltonizer_mode_deuteranomaly_summary" android:title="@string/daltonizer_mode_deuteranomaly_title" + settings:titleMaxLines="@integer/max_integer" settings:controller="com.android.settings.accessibility.DaltonizerRadioButtonPreferenceController" />