Update string for incompatible charging
Update string and icon for incompatibe charger settings banner tip Dark theme: https://screenshot.googleplex.com/6fpK5z6PQ6yGnNU.png Light theme: https://screenshot.googleplex.com/ASWf6CzF2f9Qfg8.png Figma design: https://screenshot.googleplex.com/7yBoAW7jHxhHsEg.png Bug: 315748218 Test: atest SettingsRoboTests:com.android.settings.fuelgauge.batterytip.tips.IncompatibleChargerTipTest Change-Id: I10498aaf820ab1c2123d80051f09b2f11560f33a
This commit is contained in:
@@ -719,9 +719,9 @@
|
||||
<!-- An explanation text that the password needs to be solved because the device was factory reset. [CHAR LIMIT=100] -->
|
||||
<string name="lockpassword_confirm_your_password_details_frp" product="device">Your device was reset to factory settings. To use this device, enter your previous password.</string>
|
||||
<!-- Message of incompatible charging battery tip [CHAR LIMIT=NONE] -->
|
||||
<string name="battery_tip_incompatible_charging_message" product="default">Battery charging slowly or won\'t charge. Check if the cable and power adapter work with your phone</string>
|
||||
<string name="battery_tip_incompatible_charging_message" product="device">Battery charging slowly or won\'t charge. Check if the cable and power adapter work with your device</string>
|
||||
<string name="battery_tip_incompatible_charging_message" product="tablet">Battery charging slowly or won\'t charge. Check if the cable and power adapter work with your tablet</string>
|
||||
<string name="battery_tip_incompatible_charging_message" product="default">Your phone may be charging slowly or not charging. For faster charging, use a recommended cable and adapter.</string>
|
||||
<string name="battery_tip_incompatible_charging_message" product="device">Your device may be charging slowly or not charging. For faster charging, use a recommended cable and adapter.</string>
|
||||
<string name="battery_tip_incompatible_charging_message" product="tablet">Your tablet may be charging slowly or not charging. For faster charging, use a recommended cable and adapter.</string>
|
||||
|
||||
<!-- Description for using device controls feature with a locked phone [CHAR LIMIT=NONE] -->
|
||||
<string name="lockscreen_trivial_controls_summary" product="default">Without unlocking your phone</string>
|
||||
|
25
res/drawable/ic_battery_incompatible_charger.xml
Normal file
25
res/drawable/ic_battery_incompatible_charger.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<!--
|
||||
~ Copyright (C) 2024 The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="33dp"
|
||||
android:height="33dp"
|
||||
android:viewportWidth="33"
|
||||
android:viewportHeight="33">
|
||||
<path
|
||||
android:pathData="M29.136,29.137L3.864,3.864L1.911,5.803L8.278,12.169C8.278,12.224 8.25,19.938 8.25,19.938L13.063,24.75V28.875H19.938V24.75L20.405,24.283L27.198,31.076L29.136,29.137ZM17.188,23.609V26.125H15.813V23.609L11,18.769V14.878L18.452,22.33L17.188,23.609ZM11,7.109L16.266,12.375H22V18.109L24.282,20.392L24.75,19.924V12.375C24.75,10.863 23.513,9.626 22,9.626V4.126H19.25V9.626H13.75V4.126H11V7.109Z"
|
||||
android:fillColor="?android:attr/colorAccent"/>
|
||||
</vector>
|
@@ -5675,7 +5675,7 @@
|
||||
<!-- Charge to full button for battery defender tips [CHAR LIMIT=NONE] -->
|
||||
<string name="battery_tip_charge_to_full_button">Charge to full</string>
|
||||
<!-- Title of incompatible charging battery tip [CHAR LIMIT=NONE] -->
|
||||
<string name="battery_tip_incompatible_charging_title">Issue with charging accessory</string>
|
||||
<string name="battery_tip_incompatible_charging_title">Check charging accessory</string>
|
||||
<!-- Content description for the incompatible charging battery tip button [CHAR LIMIT=NONE] -->
|
||||
<string name="battery_tip_incompatible_charging_content_description">Learn more about incompatible charging</string>
|
||||
|
||||
|
@@ -52,7 +52,7 @@ public final class IncompatibleChargerTip extends BatteryTip {
|
||||
|
||||
@Override
|
||||
public int getIconId() {
|
||||
return R.drawable.ic_battery_charger;
|
||||
return R.drawable.ic_battery_incompatible_charger;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -79,7 +79,8 @@ public final class IncompatibleChargerTipTest {
|
||||
|
||||
@Test
|
||||
public void getIcon_showIcon() {
|
||||
assertThat(mIncompatibleChargerTip.getIconId()).isEqualTo(R.drawable.ic_battery_charger);
|
||||
assertThat(mIncompatibleChargerTip.getIconId())
|
||||
.isEqualTo(R.drawable.ic_battery_incompatible_charger);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user