Learn mode link is not in footer text
Use wrong footerPreference key. Change-Id: Ic88b4bf9cf336474231329aa2154242d3f95b91a Fix: 139086150 Test: visual
This commit is contained in:
@@ -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"
|
||||
|
@@ -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>
|
||||
|
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user