From d47702cd09be5ea77794242e9db49b8055db09b6 Mon Sep 17 00:00:00 2001 From: Narayan Kamath Date: Thu, 28 Nov 2019 15:00:36 +0000 Subject: Change media projection permission dialog. Based on feedback from partners. Test: visual Bug: 143183960 Change-Id: Ifa734cc8b2f7ca7696af03327709728731ca9490 --- packages/SystemUI/res/values/strings.xml | 9 ++++++--- .../systemui/media/MediaProjectionPermissionActivity.java | 5 +++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml index 99da058a2e2b..7f400be951f2 100644 --- a/packages/SystemUI/res/values/strings.xml +++ b/packages/SystemUI/res/values/strings.xml @@ -1146,13 +1146,16 @@ Turn off Battery Saver - While recording or casting, %s can capture any sensitive information that is displayed on your screen or played from your device, including sensitive information such as audio, passwords, payment info, photos and messages. + %s will have access to all of the information that is visible on your screen or played from your device while recording or casting. This includes information such as passwords, payment details, photos, messages, and audio that you play. - While recording or casting, the service providing this function can capture any sensitive information that is displayed on your screen or played from your device, including sensitive information such as audio, passwords, payment info, photos and messages. + The service providing this function will have access to all of the information that is visible on your screen or played from your device while recording or casting. This includes information such as passwords, payment details, photos, messages, and audio that you play. + + + Start recording or casting ? - Exposing sensitive info during casting/recording + Start recording or casting with %s? Don\'t show again diff --git a/packages/SystemUI/src/com/android/systemui/media/MediaProjectionPermissionActivity.java b/packages/SystemUI/src/com/android/systemui/media/MediaProjectionPermissionActivity.java index f78429316e5a..66c51d278dab 100644 --- a/packages/SystemUI/src/com/android/systemui/media/MediaProjectionPermissionActivity.java +++ b/packages/SystemUI/src/com/android/systemui/media/MediaProjectionPermissionActivity.java @@ -98,8 +98,10 @@ public class MediaProjectionPermissionActivity extends Activity paint.setTextSize(42); CharSequence dialogText = null; + CharSequence dialogTitle = null; if (Utils.isHeadlessRemoteDisplayProvider(packageManager, mPackageName)) { dialogText = getString(R.string.media_projection_dialog_service_text); + dialogTitle = getString(R.string.media_projection_dialog_service_title); } else { String label = aInfo.loadLabel(packageManager).toString(); @@ -138,10 +140,9 @@ public class MediaProjectionPermissionActivity extends Activity appNameIndex, appNameIndex + appName.length(), 0); } dialogText = message; + dialogTitle = getString(R.string.media_projection_dialog_title, appName); } - String dialogTitle = getString(R.string.media_projection_dialog_title); - View dialogTitleView = View.inflate(this, R.layout.media_projection_dialog_title, null); TextView titleText = (TextView) dialogTitleView.findViewById(R.id.dialog_title); titleText.setText(dialogTitle); -- cgit v1.2.3-59-g8ed1b