diff options
author | 2023-03-31 22:04:08 +0000 | |
---|---|---|
committer | 2023-03-31 22:04:08 +0000 | |
commit | 36acf04638c4b99ae61c3194f4847d62caa7116b (patch) | |
tree | b21cde7585ef55f1d95c542ab9a01c8b75a2a30b /packages/CompanionDeviceManager | |
parent | 9cc0dd6edb93e7596f771a2b3ccf5a1e4ca098ea (diff) |
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
Diffstat (limited to 'packages/CompanionDeviceManager')
-rw-r--r-- | packages/CompanionDeviceManager/res/values/strings.xml | 12 | ||||
-rw-r--r-- | packages/CompanionDeviceManager/src/com/android/companiondevicemanager/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 c898fe5a9f2c..d87abb98ebde 100644 --- a/packages/CompanionDeviceManager/res/values/strings.xml +++ b/packages/CompanionDeviceManager/res/values/strings.xml @@ -20,7 +20,7 @@ <string name="app_label">Companion Device Manager</string> <!-- Title of the device association confirmation dialog. --> - <string name="confirmation_title">Allow <strong><xliff:g id="app_name" example="Android Wear">%1$s</xliff:g></strong> to access <strong><xliff:g id="device_name" example="ASUS ZenWatch 2">%2$s</xliff:g></strong></string> + <string name="confirmation_title">Allow <strong><xliff:g id="app_name" example="Android Wear">%1$s</xliff:g></strong> to access <strong><xliff:g id="device_name" example="ASUS ZenWatch 2">%2$s</xliff:g></strong>?</string> <!-- ================= DEVICE_PROFILE_WATCH and null profile ================= --> @@ -34,7 +34,7 @@ <string name="summary_watch">This app is needed to manage your <xliff:g id="device_name" example="My Watch">%1$s</xliff:g>. <xliff:g id="app_name" example="Android Wear">%2$s</xliff:g> 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.</string> <!-- Description of the privileges the application will get if associated with the companion device of WATCH profile for singleDevice(type) [CHAR LIMIT=NONE] --> - <string name="summary_watch_single_device">This app will be allowed to sync info, like the name of someone calling, and access these permissions</string> + <string name="summary_watch_single_device">This app will be allowed to sync info, like the name of someone calling, and access these permissions on your <xliff:g id="device_name" example="phone">%1$s</xliff:g></string> <!-- ================= DEVICE_PROFILE_GLASSES ================= --> @@ -48,7 +48,7 @@ <string name="summary_glasses_multi_device">This app is needed to manage <xliff:g id="device_name" example="My Glasses">%1$s</xliff:g>. <xliff:g id="app_name" example="Glasses">%2$s</xliff:g> will be allowed to interact with your notifications and access your Phone, SMS, Contacts, Microphone and Nearby devices permissions.</string> <!-- Description of the privileges the application will get if associated with the companion device of GLASSES profile for singleDevice(type) [CHAR LIMIT=NONE] --> - <string name="summary_glasses_single_device">This app will be allowed to access these permissions on your phone</string> + <string name="summary_glasses_single_device">This app will be allowed to access these permissions on your <xliff:g id="device_name" example="phone">%1$s</xliff:g></string> <!-- ================= DEVICE_PROFILE_APP_STREAMING ================= --> @@ -194,4 +194,10 @@ <!-- Description of nearby_device_streaming permission of corresponding profile [CHAR LIMIT=NONE] --> <string name="permission_nearby_device_streaming_summary">Stream apps and other system features from your phone</string> + <!-- The type of the device for phone [CHAR LIMIT=30] --> + <string name="device_type" product="default">phone</string> + + <!-- The type of the device for tablet [CHAR LIMIT=30] --> + <string name="device_type" product="tablet">tablet</string> + </resources> diff --git a/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/CompanionDeviceActivity.java b/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/CompanionDeviceActivity.java index ae0882342be4..4154029b6d41 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(); } |