From 36acf04638c4b99ae61c3194f4847d62caa7116b Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Fri, 31 Mar 2023 22:04:08 +0000 Subject: [PATCH] Add device type at the end of summary for single device Also add a question mark at the end of the headers No Profile singleDevice: https://screenshot.googleplex.com/3fuhm9jbuFMWkvd Watch Profile singleDevice: https://screenshot.googleplex.com/AywBG2HjX2GEPyZ Glass Profile singleDevice: https://screenshot.googleplex.com/4eMCX4b5rwd4NBS Bug: 267646302 Test: cts Change-Id: I1f16a88536526e4820f6ae1ba79c5501558a01ff --- .../CompanionDeviceManager/res/values/strings.xml | 12 +++++++++--- .../CompanionDeviceActivity.java | 3 ++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/packages/CompanionDeviceManager/res/values/strings.xml b/packages/CompanionDeviceManager/res/values/strings.xml index c898fe5a9f2c0..d87abb98ebdef 100644 --- a/packages/CompanionDeviceManager/res/values/strings.xml +++ b/packages/CompanionDeviceManager/res/values/strings.xml @@ -20,7 +20,7 @@ Companion Device Manager - Allow <strong>%1$s</strong> to access <strong>%2$s</strong> + Allow <strong>%1$s</strong> to access <strong>%2$s</strong>? @@ -34,7 +34,7 @@ This app is needed to manage your %1$s. %2$s will be allowed to sync info, like the name of someone calling, interact with your notifications and access your Phone, SMS, Contacts, Calendar, Call logs and Nearby devices permissions. - This app will be allowed to sync info, like the name of someone calling, and access these permissions + This app will be allowed to sync info, like the name of someone calling, and access these permissions on your %1$s @@ -48,7 +48,7 @@ This app is needed to manage %1$s. %2$s will be allowed to interact with your notifications and access your Phone, SMS, Contacts, Microphone and Nearby devices permissions. - This app will be allowed to access these permissions on your phone + This app will be allowed to access these permissions on your %1$s @@ -194,4 +194,10 @@ Stream apps and other system features from your phone + + phone + + + tablet + diff --git a/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/CompanionDeviceActivity.java b/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/CompanionDeviceActivity.java index ae0882342be4d..4154029b6d418 100644 --- a/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/CompanionDeviceActivity.java +++ b/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/CompanionDeviceActivity.java @@ -551,7 +551,8 @@ public class CompanionDeviceActivity extends FragmentActivity implements summary = getHtmlFromResources(this, SUMMARIES.get(null), deviceName); mConstraintList.setVisibility(View.GONE); } else { - summary = getHtmlFromResources(this, SUMMARIES.get(deviceProfile)); + summary = getHtmlFromResources( + this, SUMMARIES.get(deviceProfile), getString(R.string.device_type)); mPermissionTypes.addAll(PERMISSION_TYPES.get(deviceProfile)); setupPermissionList(); }