From 645e28e31bacc95ec1998efc5ec91b6b84ed7b10 Mon Sep 17 00:00:00 2001 From: "Wesley.CW Wang" Date: Fri, 28 May 2021 21:44:28 +0800 Subject: [PATCH] Update battery error layout - Update font - Add importantForAccessibility to make whole layout selectable Screenshot: https://screenshot.googleplex.com/9nJxzD47xeaB6ea.png Bug: 187612897 Test: make RunSettingsRoboTests Change-Id: I15bbee6780d8e2c0a01995c6dbb91b933abda274 --- res/layout/preference_battery_error.xml | 9 +++++---- res/values/strings.xml | 2 ++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/res/layout/preference_battery_error.xml b/res/layout/preference_battery_error.xml index 4efd13af012..68ac6a2ee54 100644 --- a/res/layout/preference_battery_error.xml +++ b/res/layout/preference_battery_error.xml @@ -24,6 +24,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="8dp" + android:importantForAccessibility="yes" style="@style/ContextualCardStyle"> + android:textAppearance="?android:attr/textAppearanceListItem" /> + android:textAppearance="?android:attr/textAppearanceListItemSecondary" + android:textColor="@*android:color/material_red_A700" + android:contentDescription="@string/battery_missing_link_a11y_message" /> diff --git a/res/values/strings.xml b/res/values/strings.xml index c6ea2d273ba..7e1420abc97 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -6204,6 +6204,8 @@ Can’t update battery info + + Tap to learn more about this error Stop app?