[Shadow] Update the string and the dismiss button

- Disable the dismiss button for incompatible charging
- Update the button string for battery defender tips
- Update settings banner icon for defender

Test: Manual Test
Bug: 315748218
Change-Id: I0cfe03e7984be02eff4fb6dce68cc22fe7edf8e2
This commit is contained in:
pajacechen
2024-02-17 15:20:19 +08:00
committed by Pajace Chen
parent 62fa76f719
commit 1abc13fe29
4 changed files with 13 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ public class BatteryDefenderTip extends BatteryTip {
@Override
public int getIconId() {
return R.drawable.ic_battery_status_good_theme;
return R.drawable.ic_battery_defender_tip_shield;
}
@Override

View File

@@ -81,6 +81,7 @@ public final class IncompatibleChargerTip extends BatteryTip {
}
cardPreference.setSelectable(false);
cardPreference.enableDismiss(false);
cardPreference.setIconResId(getIconId());
cardPreference.setPrimaryButtonText(context.getString(R.string.learn_more));
cardPreference.setPrimaryButtonAction(