From a3961cd6d7474b0844a9ca75a8209a14d5522fe4 Mon Sep 17 00:00:00 2001 From: Sunny Shao Date: Fri, 16 Aug 2019 16:49:59 +0800 Subject: [PATCH] Use FooterPreference in xml explicitly Removed the FooterPreferenceMixin from the PowerUsageSummary page. Fixes: 139515012 Test: manual test Change-Id: I29af8ad4df303edeeb511057d53d38c847f0ff21 --- res/xml/power_usage_summary.xml | 5 +++++ src/com/android/settings/fuelgauge/PowerUsageSummary.java | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/res/xml/power_usage_summary.xml b/res/xml/power_usage_summary.xml index b32af469b59..005ce17f36d 100644 --- a/res/xml/power_usage_summary.xml +++ b/res/xml/power_usage_summary.xml @@ -63,4 +63,9 @@ android:title="@string/device_screen_usage" android:selectable="false" /> + diff --git a/src/com/android/settings/fuelgauge/PowerUsageSummary.java b/src/com/android/settings/fuelgauge/PowerUsageSummary.java index 4a68be97df5..04f6b317c37 100644 --- a/src/com/android/settings/fuelgauge/PowerUsageSummary.java +++ b/src/com/android/settings/fuelgauge/PowerUsageSummary.java @@ -225,7 +225,6 @@ public class PowerUsageSummary extends PowerUsageBase implements OnLongClickList mScreenUsagePref = (PowerGaugePreference) findPreference(KEY_SCREEN_USAGE); mLastFullChargePref = (PowerGaugePreference) findPreference( KEY_TIME_SINCE_LAST_FULL_CHARGE); - mFooterPreferenceMixin.createFooterPreference().setTitle(R.string.battery_footer_summary); mBatteryUtils = BatteryUtils.getInstance(getContext()); restartBatteryInfoLoader();