From 5be926fbc4fdc4699d07def32014aa5914a31abb Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Wed, 1 Mar 2023 20:41:38 +0000 Subject: [PATCH] Apply bullet permission UI to multiple device dialog Sepreate to two dialogs for non-null profile. One for the device chooser and another one for bullet permission dialog. Test: Cts Fix: 271311544, 267646302 Change-Id: I8229ce00f17281736aa91a1a9cceea9aaeee35ee --- .../res/layout/activity_confirmation.xml | 2 +- .../res/values/strings.xml | 25 ++-- .../res/values/styles.xml | 12 +- .../CompanionDeviceActivity.java | 134 +++++++++--------- .../CompanionDeviceResources.java | 14 +- 5 files changed, 89 insertions(+), 98 deletions(-) diff --git a/packages/CompanionDeviceManager/res/layout/activity_confirmation.xml b/packages/CompanionDeviceManager/res/layout/activity_confirmation.xml index aae30dfe62234..a0b34690696fe 100644 --- a/packages/CompanionDeviceManager/res/layout/activity_confirmation.xml +++ b/packages/CompanionDeviceManager/res/layout/activity_confirmation.xml @@ -144,7 +144,7 @@ android:visibility="gone" android:duplicateParentState="true" android:clickable="false" - android:text="@string/consent_no" /> + android:text="@string/consent_cancel" /> diff --git a/packages/CompanionDeviceManager/res/values/strings.xml b/packages/CompanionDeviceManager/res/values/strings.xml index 2502bbf7b40b5..539857951ab1d 100644 --- a/packages/CompanionDeviceManager/res/values/strings.xml +++ b/packages/CompanionDeviceManager/res/values/strings.xml @@ -28,13 +28,13 @@ watch - Choose a %1$s to be managed by <strong>%2$s</strong> + Choose a device to be managed by <strong>%1$s</strong> - - 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. + + Choose a %1$s to set up - - This app will be allowed to sync info, like the name of someone calling, and access these permissions on your %1$s + + This app will be allowed to sync info, like the name of someone calling, and access these permissions on your %1$s @@ -42,13 +42,10 @@ Allow <strong>%1$s</strong> to manage <strong>%2$s</strong>? - glasses + device - - 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 %1$s + + This app will be allowed to access these permissions on your %1$s @@ -96,9 +93,6 @@ device - - This app will be able to sync info, like the name of someone calling, between your phone and %1$s - This app will be able to sync info, like the name of someone calling, between your phone and the chosen device @@ -110,6 +104,9 @@ Don\u2019t allow + + Cancel + Back diff --git a/packages/CompanionDeviceManager/res/values/styles.xml b/packages/CompanionDeviceManager/res/values/styles.xml index e85190be0e1e4..222877bbe9e92 100644 --- a/packages/CompanionDeviceManager/res/values/styles.xml +++ b/packages/CompanionDeviceManager/res/values/styles.xml @@ -69,11 +69,13 @@