From 22c255d69c9f22bf9735619038569b018e1ab550 Mon Sep 17 00:00:00 2001 From: Fabian Kozynski Date: Thu, 8 Apr 2021 10:24:03 -0400 Subject: [PATCH] Update strings for privacy dialog Test: manual and TB Fixes: 184776891 Change-Id: I316ff5a26ef642b2d28e0c49ab3e1b59b9a8d05c --- packages/SystemUI/res/layout/privacy_dialog_item.xml | 1 - packages/SystemUI/res/values/strings.xml | 10 +++++----- .../src/com/android/systemui/privacy/PrivacyDialog.kt | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/packages/SystemUI/res/layout/privacy_dialog_item.xml b/packages/SystemUI/res/layout/privacy_dialog_item.xml index 0c8ed9f7ff2af..b91fb29c6f51b 100644 --- a/packages/SystemUI/res/layout/privacy_dialog_item.xml +++ b/packages/SystemUI/res/layout/privacy_dialog_item.xml @@ -31,7 +31,6 @@ android:layout_width="@dimen/ongoing_appops_dialog_circle_size" android:layout_height="@dimen/ongoing_appops_dialog_circle_size" android:layout_gravity="center_vertical" - android:importantForAccessibility="no" /> \u0020and\u0020 - %1$s is using the %2$s + Being used by %1$s - %1$s used the %2$s recently + Recently used by %1$s - (enterprise) + (work) Phone call - - (through %s) + + (through %s) camera diff --git a/packages/SystemUI/src/com/android/systemui/privacy/PrivacyDialog.kt b/packages/SystemUI/src/com/android/systemui/privacy/PrivacyDialog.kt index dc22dc17cb859..9e8f6b82c182d 100644 --- a/packages/SystemUI/src/com/android/systemui/privacy/PrivacyDialog.kt +++ b/packages/SystemUI/src/com/android/systemui/privacy/PrivacyDialog.kt @@ -119,7 +119,7 @@ class PrivacyDialog( } else { app } - val firstLine = context.getString(stringId, appName, element.type.getName(context)) + val firstLine = context.getString(stringId, appName) val finalText = element.attribution?.let { TextUtils.concat( firstLine,