From ce5b93c713d11a618e87dd01008d8fea48d0be8d Mon Sep 17 00:00:00 2001 From: Nick Chameyev Date: Wed, 26 Oct 2022 14:19:15 +0100 Subject: [Partial screensharing] Update copies Updates media projectoin app selector title copy. Adds copies for media projection enterprise policies and for permission dialog when requested by a system service without name. Bug: 240939253 Test: manual Change-Id: I3dca0eb447e85a8b3431c345b65eeae94a3849db --- packages/SystemUI/res/values/strings.xml | 15 +++++++++++++++ .../systemui/media/MediaProjectionAppSelectorActivity.kt | 3 +-- 2 files changed, 16 insertions(+), 2 deletions(-) (limited to 'packages/SystemUI') diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml index 212c77b50477..a7f8cb6f695e 100644 --- a/packages/SystemUI/res/values/strings.xml +++ b/packages/SystemUI/res/values/strings.xml @@ -989,6 +989,21 @@ Share or record an app + + Allow this app to share or record? + + + When you\'re sharing, recording, or casting, this app has access to anything visible on your screen or played on your device. So be careful with passwords, payment details, messages, or other sensitive information. + + + When you\'re sharing, recording, or casting an app, this app has access to anything shown or played on that app. So be careful with passwords, payment details, messages, or other sensitive information. + + + Blocked by your IT admin + + + Screen capturing is disabled by device policy + Clear all diff --git a/packages/SystemUI/src/com/android/systemui/media/MediaProjectionAppSelectorActivity.kt b/packages/SystemUI/src/com/android/systemui/media/MediaProjectionAppSelectorActivity.kt index be357ee0ff73..ceb48458a1d3 100644 --- a/packages/SystemUI/src/com/android/systemui/media/MediaProjectionAppSelectorActivity.kt +++ b/packages/SystemUI/src/com/android/systemui/media/MediaProjectionAppSelectorActivity.kt @@ -79,8 +79,7 @@ class MediaProjectionAppSelectorActivity( val queryIntent = Intent(Intent.ACTION_MAIN).apply { addCategory(Intent.CATEGORY_LAUNCHER) } intent.putExtra(Intent.EXTRA_INTENT, queryIntent) - // TODO(b/240939253): update copies - val title = getString(R.string.media_projection_dialog_service_title) + val title = getString(R.string.media_projection_permission_app_selector_title) intent.putExtra(Intent.EXTRA_TITLE, title) super.onCreate(bundle) controller.init() -- cgit v1.2.3-59-g8ed1b