From 8e11085436eb0c68c9f287c822f79b1cb50ad2fd Mon Sep 17 00:00:00 2001 From: Zaiyue Xue Date: Fri, 19 Aug 2022 14:29:00 +0800 Subject: [PATCH] Fix b/242989581: The two battery charts have the same label Bug: 242989581 Fix: 242989581 Test: manual Change-Id: I8fc6c13351b46f4e29daf2f28201d99d8087092f --- res/layout/battery_chart_graph.xml | 4 ++-- res/values/strings.xml | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/res/layout/battery_chart_graph.xml b/res/layout/battery_chart_graph.xml index b95c6604be2..6e86aec0760 100644 --- a/res/layout/battery_chart_graph.xml +++ b/res/layout/battery_chart_graph.xml @@ -37,7 +37,7 @@ android:layout_height="170dp" android:layout_marginBottom="16dp" android:visibility="gone" - android:contentDescription="@string/battery_usage_chart" + android:contentDescription="@string/daily_battery_usage_chart" android:textAppearance="?android:attr/textAppearanceSmall" settings:textColor="?android:attr/textColorSecondary" /> @@ -47,7 +47,7 @@ android:layout_height="170dp" android:layout_marginBottom="16dp" android:visibility="visible" - android:contentDescription="@string/battery_usage_chart" + android:contentDescription="@string/hourly_battery_usage_chart" android:textAppearance="?android:attr/textAppearanceSmall" settings:textColor="?android:attr/textColorSecondary" /> diff --git a/res/values/strings.xml b/res/values/strings.xml index 01604c1d704..1e2fb0f519b 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -6456,6 +6456,10 @@ Battery usage data will be available after you use your phone for a few hours Battery usage chart + + Daily battery usage chart + + Hourly battery usage chart