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

Commit 98ae0159 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Use FooterPreference in xml explicitly"

parents 86b34f8b 513cc956
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -46,4 +46,9 @@
        android:key="restricted_app"
        android:title="@string/restricted_app_title"/>

    <com.android.settingslib.widget.FooterPreference
        android:key="smart_battery_detail_footer"
        android:title="@string/smart_battery_footer"
        android:selectable="false"
        settings:searchable="false"/>
</PreferenceScreen>
 No newline at end of file
+0 −7
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@ package com.android.settings.fuelgauge;

import android.app.settings.SettingsEnums;
import android.content.Context;
import android.os.Bundle;
import android.provider.SearchIndexableResource;

import com.android.settings.R;
@@ -40,12 +39,6 @@ import java.util.List;
public class SmartBatterySettings extends DashboardFragment {
    public static final String TAG = "SmartBatterySettings";

    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        mFooterPreferenceMixin.createFooterPreference().setTitle(R.string.smart_battery_footer);
    }

    @Override
    public int getMetricsCategory() {
        return SettingsEnums.FUELGAUGE_SMART_BATTERY;