From ed0af5f88b4a80ef499d56741f5af948d23f6784 Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Thu, 21 Jan 2021 03:05:16 +0000 Subject: [PATCH] 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 --- res/values/strings.xml | 4 ++++ res/xml/usb_details_fragment.xml | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 114b41c3a5f..7158fa4e36e 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -9981,6 +9981,10 @@ When another device is connected and your phone is unlocked, these settings will be applied. Only connect to trusted devices. + + Power options + USB diff --git a/res/xml/usb_details_fragment.xml b/res/xml/usb_details_fragment.xml index 4a6cefa261f..62ccf087a09 100644 --- a/res/xml/usb_details_fragment.xml +++ b/res/xml/usb_details_fragment.xml @@ -34,6 +34,7 @@ android:title="@string/usb_use"/> + android:key="usb_details_power_role" + android:title="@string/usb_power_title"/>