Add header to USB power options preference

Since the separators for the preference categories are no longer shown
in Android, it makes sense to add a header for the power options
category just like rest of the categories in USB Preferences.

BUG=158466651
Test: manual.

Change-Id: I18e2e8acfcb66e2601137c6718f8b8335776416c
This commit is contained in:
Manish Singh
2021-01-21 03:05:16 +00:00
parent 1c1329948f
commit ed0af5f88b
2 changed files with 6 additions and 1 deletions

View File

@@ -9981,6 +9981,10 @@
<!-- Description at the footer of the default USB configuration window that describes how the setting works. -->
<string name="usb_default_info">When another device is connected and your phone is unlocked, these settings will be applied. Only connect to trusted devices.</string>
<!-- The title used in USB Preferences which provides the user with the control over this
device's power role. -->
<string name="usb_power_title">Power options</string>
<!-- Settings item title for USB preference [CHAR LIMIT=35] -->
<string name="usb_pref">USB</string>
<!-- Settings screen title for USB preference [CHAR LIMIT=35] -->

View File

@@ -34,6 +34,7 @@
android:title="@string/usb_use"/>
<PreferenceCategory
android:key="usb_details_power_role"/>
android:key="usb_details_power_role"
android:title="@string/usb_power_title"/>
</PreferenceScreen>