Update the strings to match the Figma mock

- Update the strings to match the Figma mock when the blocked activity
is a permission prompt.

Bug: 203834118
Test: Manual
Change-Id: I38b02e408c3099d73431316840bd5b8e732aee90
This commit is contained in:
Cliff Wu
2022-03-08 15:56:00 +08:00
parent 733ade6fbf
commit 96b977e16e
3 changed files with 8 additions and 1 deletions

View File

@@ -56,7 +56,11 @@ public class BlockedAppStreamingActivity extends AlertActivity {
CharSequence streamedDeviceName = intent.getCharSequenceExtra(EXTRA_STREAMED_DEVICE);
if (!TextUtils.isEmpty(streamedDeviceName)) {
mAlertParams.mTitle = getString(R.string.app_streaming_blocked_title, appLabel);
mAlertParams.mTitle =
TextUtils.equals(activityInfo.packageName,
getPackageManager().getPermissionControllerPackageName())
? getString(R.string.app_streaming_blocked_title_for_permission_dialog)
: getString(R.string.app_streaming_blocked_title, appLabel);
mAlertParams.mMessage =
getString(R.string.app_streaming_blocked_message, streamedDeviceName);
} else {

View File

@@ -5473,6 +5473,8 @@
<!-- Title of the dialog shown when an app is blocked from being streamed to a remote device. [CHAR LIMIT=NONE] -->
<string name="app_streaming_blocked_title"><xliff:g id="activity" example="Permission dialog">%1$s</xliff:g> unavailable</string>
<!-- Title of the dialog shown when the permissioncontroller is blocked from being streamed to a remote device. [CHAR LIMIT=NONE] -->
<string name="app_streaming_blocked_title_for_permission_dialog">Permission needed</string>
<!-- Message shown when an app is blocked from being streamed to a remote device. [CHAR LIMIT=NONE] -->
<string name="app_streaming_blocked_message" product="tv">This can’t be accessed on your <xliff:g id="device" example="Chromebook">%1$s</xliff:g> at this time. Try on your Android TV device instead.</string>
<!-- Message shown when an app is blocked from being streamed to a remote device. [CHAR LIMIT=NONE] -->

View File

@@ -3296,6 +3296,7 @@
<java-symbol type="string" name="app_blocked_message" />
<java-symbol type="string" name="app_streaming_blocked_title" />
<java-symbol type="string" name="app_streaming_blocked_title_for_permission_dialog" />
<java-symbol type="string" name="app_streaming_blocked_message" />
<!-- Used internally for assistant to launch activity transitions -->