Update batter saver page footer (1/2)

- Remove iconSpaceReserved since settings theme already handle it
 - Add underline

Bug: 183689347
Test: make SettingsRoboTests
Change-Id: Ib52cfb48453d49b1ead3bf19183449cc18018dd3
This commit is contained in:
Wesley.CW Wang
2021-04-29 19:03:38 +08:00
committed by Wesley Wang
parent 58fb70f8d6
commit 6adeed1a2c
3 changed files with 5 additions and 11 deletions

View File

@@ -81,10 +81,10 @@ public class BatterySaverSettings extends DashboardFragment {
// Updates the footer for this page.
@VisibleForTesting
void setupFooter() {
mFooterText = new SpannableStringBuilder(getText(
com.android.internal.R.string.battery_saver_description_with_learn_more));
mHelpUri = getString(R.string.help_url_battery_saver_settings);
if (!TextUtils.isEmpty(mHelpUri)) {
mFooterText = new SpannableStringBuilder(getText(
com.android.internal.R.string.battery_saver_description_with_learn_more));
addHelpLink();
}
}
@@ -96,6 +96,7 @@ public class BatterySaverSettings extends DashboardFragment {
if (pref != null) {
SupportPageLearnMoreSpan.linkify(mFooterText, this, mHelpUri);
pref.setTitle(mFooterText);
pref.setSelectable(false);
}
}
@@ -129,8 +130,6 @@ public class BatterySaverSettings extends DashboardFragment {
@Override
public void updateDrawState(TextPaint ds) {
super.updateDrawState(ds);
// remove underline
ds.setUnderlineText(false);
}
/**