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

Commit 946441ca authored by Raff Tsai's avatar Raff Tsai
Browse files

Learn mode link is not in footer text

Use wrong footerPreference key.

Change-Id: Ic88b4bf9cf336474231329aa2154242d3f95b91a
Fix: 139086150
Test: visual
parent 73e3aa19
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -22,7 +22,8 @@
    android:paddingStart="72dp"
    android:paddingEnd="72dp"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    android:layout_height="wrap_content"
    android:minHeight="?android:attr/listPreferredItemHeight">

    <Button
        android:id="@+id/state_on_button"
+9 −9
Original line number Diff line number Diff line
@@ -39,16 +39,16 @@
        android:title="@string/battery_saver"
        android:selectable="false"
        android:summary="@string/battery_saver_turn_on_summary"
        settings:allowDividerBelow="true"
        settings:textOn="@string/battery_saver_button_turn_on"
        settings:textOff="@string/battery_saver_button_turn_off"
        settings:controller="com.android.settings.fuelgauge.batterysaver.BatterySaverButtonPreferenceController"/>

    <PreferenceCategory
        android:key="battery_saver_footer">
    <com.android.settingslib.widget.FooterPreference
        android:key="battery_saver_footer_preference"
        android:selectable="false"
        android:title="@*android:string/battery_saver_description"
            android:selectable="false" />
    </PreferenceCategory>
        settings:allowDividerAbove="true"
        settings:searchable="false"/>

</PreferenceScreen>
+1 −2
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@ package com.android.settings.fuelgauge.batterysaver;

import android.app.settings.SettingsEnums;
import android.content.Context;
import android.os.Bundle;
import android.provider.SearchIndexableResource;
import android.text.Annotation;
import android.text.Spannable;
@@ -49,7 +48,7 @@ import java.util.List;
@SearchIndexable(forTarget = SearchIndexable.ALL & ~SearchIndexable.ARC)
public class BatterySaverSettings extends DashboardFragment {
    private static final String TAG = "BatterySaverSettings";
    public static final String KEY_FOOTER_PREFERENCE = "footer_preference";
    private static final String KEY_FOOTER_PREFERENCE = "battery_saver_footer_preference";
    private SpannableStringBuilder mFooterText;
    private String mHelpUri;