From 243b450428ad2e59b0df85c25b761597291d8fff Mon Sep 17 00:00:00 2001 From: Wesley Date: Mon, 29 Aug 2022 23:39:34 +0000 Subject: [PATCH] Update defend tips card - Update defend tips card to unclickable - Update secondary button's action and content description screenshot: https://screenshot.googleplex.com/BYU8Mh5abJ9Tirh.png Bug: 243769797 Bug: 243641857 Bug: 244219076 Test: make SettingsRoboTests Change-Id: I7fdf5f7404d33f0374a992c83a7653a01b9f11bc --- res/layout/card_preference.xml | 20 ++++++++++++++----- res/layout/card_preference_layout.xml | 4 +++- res/values/strings.xml | 4 +++- res/values/styles.xml | 1 + .../fuelgauge/batterytip/BatteryTipUtils.java | 3 --- .../batterytip/tips/BatteryDefenderTip.java | 12 ++++++++++- .../settings/widget/CardPreference.java | 9 +++++++++ .../batterytip/BatteryTipUtilsTest.java | 5 ++--- 8 files changed, 44 insertions(+), 14 deletions(-) diff --git a/res/layout/card_preference.xml b/res/layout/card_preference.xml index 39523eb6cae..72e17ef83a0 100644 --- a/res/layout/card_preference.xml +++ b/res/layout/card_preference.xml @@ -27,8 +27,6 @@ android:clipToPadding="false" android:baselineAligned="false"> - - + + + + + @@ -61,7 +71,7 @@ android:id="@+id/card_preference_buttons" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="8dp" + android:layout_marginTop="24dp" android:layout_below="@android:id/summary" android:visibility="gone">