Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3961cd6 authored by Sunny Shao's avatar Sunny Shao
Browse files

Use FooterPreference in xml explicitly

Removed the FooterPreferenceMixin from the PowerUsageSummary page.

Fixes: 139515012
Test: manual test
Change-Id: I29af8ad4df303edeeb511057d53d38c847f0ff21
parent 33051103
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -63,4 +63,9 @@
        android:title="@string/device_screen_usage"
        android:selectable="false" />

    <com.android.settingslib.widget.FooterPreference
        android:key="power_usage_footer"
        android:title="@string/battery_footer_summary"
        android:selectable="false"
        settings:searchable="false"/>
</PreferenceScreen>
+0 −1
Original line number Diff line number Diff line
@@ -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();