Merge "Update cast screen strings." into klp-dev
diff --git a/core/java/com/android/internal/app/MediaRouteChooserDialog.java b/core/java/com/android/internal/app/MediaRouteChooserDialog.java
index 944cc83..47d2a9c 100644
--- a/core/java/com/android/internal/app/MediaRouteChooserDialog.java
+++ b/core/java/com/android/internal/app/MediaRouteChooserDialog.java
@@ -35,7 +35,6 @@
import android.widget.TextView;
import java.util.Comparator;
-import java.util.List;
/**
* This class implements the route chooser dialog for {@link MediaRouter}.
@@ -125,7 +124,9 @@
getWindow().requestFeature(Window.FEATURE_LEFT_ICON);
setContentView(R.layout.media_route_chooser_dialog);
- setTitle(R.string.media_route_chooser_title);
+ setTitle(mRouteTypes == MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY
+ ? R.string.media_route_chooser_title_for_remote_display
+ : R.string.media_route_chooser_title);
// Must be called after setContentView.
getWindow().setFeatureDrawableResource(Window.FEATURE_LEFT_ICON,
diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml
index 6d8a1c8..9025400a 100644
--- a/core/res/res/values/strings.xml
+++ b/core/res/res/values/strings.xml
@@ -4099,9 +4099,12 @@
<!-- Content description of a MediaRouteButton for accessibility support -->
<string name="media_route_button_content_description">Media output</string>
- <!-- Title of the media route chooser dialog. [CHAR LIMIT=30] -->
+ <!-- Title of the media route chooser dialog. [CHAR LIMIT=40] -->
<string name="media_route_chooser_title">Connect to device</string>
+ <!-- Title of the media route chooser dialog for selecting remote display routes. [CHAR LIMIT=40] -->
+ <string name="media_route_chooser_title_for_remote_display">Cast screen to device</string>
+
<!-- Placeholder text to show when no devices have been found. [CHAR LIMIT=50] -->
<string name="media_route_chooser_searching">Searching for devices\u2026</string>
@@ -4144,11 +4147,11 @@
<string name="display_manager_overlay_display_secure_suffix">, secure</string>
<!-- Title of the notification to indicate the process of connecting to a wifi display. [CHAR LIMIT=50] -->
- <string name="wifi_display_notification_connecting_title">Starting screen cast</string>
- <!-- Message of the notification to indicate the process of connectig to a wifi display. [CHAR LIMIT=80] -->
+ <string name="wifi_display_notification_connecting_title">Casting screen</string>
+ <!-- Message of the notification to indicate the process of connecting to a wifi display. [CHAR LIMIT=80] -->
<string name="wifi_display_notification_connecting_message">Connecting to <xliff:g id="name">%1$s</xliff:g></string>
<!-- Title of the notification to indicate an active wifi display connection. [CHAR LIMIT=50] -->
- <string name="wifi_display_notification_connected_title">Screen cast in progress</string>
+ <string name="wifi_display_notification_connected_title">Casting screen</string>
<!-- Message of the notification to indicate an active wifi display connection. [CHAR LIMIT=80] -->
<string name="wifi_display_notification_connected_message">Connected to <xliff:g id="name">%1$s</xliff:g></string>
<!-- Label of a button to disconnect an active wifi display connection. [CHAR LIMIT=25] -->
diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml
index d166ca6..befbbbb 100644
--- a/core/res/res/values/symbols.xml
+++ b/core/res/res/values/symbols.xml
@@ -1267,6 +1267,7 @@
<java-symbol type="id" name="media_route_disconnect_button" />
<java-symbol type="id" name="media_route_extended_settings_button" />
<java-symbol type="string" name="media_route_chooser_title" />
+ <java-symbol type="string" name="media_route_chooser_title_for_remote_display" />
<java-symbol type="string" name="bluetooth_a2dp_audio_route_name" />
<java-symbol type="dimen" name="config_minScalingSpan" />
diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml
index d39dc94..e36ca8e 100644
--- a/packages/SystemUI/res/values/strings.xml
+++ b/packages/SystemUI/res/values/strings.xml
@@ -491,7 +491,7 @@
<!-- QuickSettings: Wifi (Off) [CHAR LIMIT=NONE] -->
<string name="quick_settings_wifi_off_label">Wi-Fi Off</string>
<!-- QuickSettings: Remote display [CHAR LIMIT=NONE] -->
- <string name="quick_settings_remote_display_no_connection_label">Screen Cast</string>
+ <string name="quick_settings_remote_display_no_connection_label">Cast Screen</string>
<!-- QuickSettings: Brightness dialog title [CHAR LIMIT=NONE] -->
<string name="quick_settings_brightness_dialog_title">Brightness</string>
<!-- QuickSettings: Brightness dialog auto brightness button [CHAR LIMIT=NONE] -->