Merge "Update strings for bubbles" into rvc-dev am: 73b2a34e8d

Change-Id: Id2fe00cb5798089c51f4a501a7e8690eb238e4f2
This commit is contained in:
TreeHugger Robot
2020-03-19 22:49:35 +00:00
committed by Automerger Merge Worker
2 changed files with 10 additions and 21 deletions

View File

@@ -1812,7 +1812,7 @@
<string name="bubble_overflow_empty_title">No recent bubbles</string> <string name="bubble_overflow_empty_title">No recent bubbles</string>
<!-- [CHAR LIMIT=NONE] Empty overflow subtitle --> <!-- [CHAR LIMIT=NONE] Empty overflow subtitle -->
<string name="bubble_overflow_empty_subtitle">Recent bubbles and dismissed bubbles will appear here.</string> <string name="bubble_overflow_empty_subtitle">Recent bubbles and dismissed bubbles will appear here</string>
<!-- Notification: Control panel: Label that displays when the app's notifications cannot be blocked. --> <!-- Notification: Control panel: Label that displays when the app's notifications cannot be blocked. -->
<string name="notification_unblockable_desc">These notifications can\'t be modified.</string> <string name="notification_unblockable_desc">These notifications can\'t be modified.</string>
@@ -2560,23 +2560,11 @@
<!-- Description of the restart button in the hint of size compatibility mode. [CHAR LIMIT=NONE] --> <!-- Description of the restart button in the hint of size compatibility mode. [CHAR LIMIT=NONE] -->
<string name="restart_button_description">Tap to restart this app and go full screen.</string> <string name="restart_button_description">Tap to restart this app and go full screen.</string>
<!-- Text used for content description of deep link button in the header of expanded bubble
view. [CHAR_LIMIT=NONE] -->
<string name="bubbles_deep_link_button_description">Open <xliff:g id="app_name" example="YouTube">%1$s</xliff:g></string>
<!-- Text used for content description of settings button in the header of expanded bubble <!-- Text used for content description of settings button in the header of expanded bubble
view. [CHAR_LIMIT=NONE] --> view. [CHAR_LIMIT=NONE] -->
<string name="bubbles_settings_button_description">Settings for <xliff:g id="app_name" example="YouTube">%1$s</xliff:g> bubbles</string> <string name="bubbles_settings_button_description">Settings for <xliff:g id="app_name" example="YouTube">%1$s</xliff:g> bubbles</string>
<!-- Text for asking the user whether bubbles (floating app content) should be enabled for an
app. [CHAR LIMIT=NONE] -->
<string name="bubbles_prompt">Allow bubbles from <xliff:g id="app_name" example="YouTube">%1$s</xliff:g>?</string>
<!-- The text for the manage bubbles link. [CHAR LIMIT=NONE] --> <!-- The text for the manage bubbles link. [CHAR LIMIT=NONE] -->
<string name="manage_bubbles_text">Manage</string> <string name="manage_bubbles_text">Manage</string>
<!-- Text used for button allowing user to opt out of bubbles [CHAR LIMIT=20] -->
<string name="no_bubbles">Deny</string>
<!-- Text used for button allowing user to approve / enable bubbles [CHAR LIMIT=20] -->
<string name="yes_bubbles">Allow</string>
<!-- Text used for the button allowing users to postpone their decision to allow or deny bubbles [CHAR LIMIT=40] -->
<string name="ask_me_later_bubbles">Ask me later</string>
<!-- Content description when a bubble is focused. [CHAR LIMIT=NONE] --> <!-- Content description when a bubble is focused. [CHAR LIMIT=NONE] -->
<string name="bubble_content_description_single"><xliff:g id="notification_title" example="some title">%1$s</xliff:g> from <xliff:g id="app_name" example="YouTube">%2$s</xliff:g></string> <string name="bubble_content_description_single"><xliff:g id="notification_title" example="some title">%1$s</xliff:g> from <xliff:g id="app_name" example="YouTube">%2$s</xliff:g></string>
<!-- Content description when the stack of bubbles is focused. [CHAR LIMIT=NONE] --> <!-- Content description when the stack of bubbles is focused. [CHAR LIMIT=NONE] -->
@@ -2593,12 +2581,18 @@
<string name="bubble_accessibility_action_move_bottom_right">Move bottom right</string> <string name="bubble_accessibility_action_move_bottom_right">Move bottom right</string>
<!-- Text used for the bubble dismiss area. Bubbles dragged to, or flung towards, this area will go away. [CHAR LIMIT=20] --> <!-- Text used for the bubble dismiss area. Bubbles dragged to, or flung towards, this area will go away. [CHAR LIMIT=20] -->
<string name="bubble_dismiss_text">Dismiss</string> <string name="bubble_dismiss_text">Dismiss</string>
<!-- Button text to stop a conversation from bubbling [CHAR LIMIT=60]-->
<string name="bubbles_dont_bubble_conversation">Don\u2019t bubble conversation</string>
<!-- Title text for the bubbles feature education cling shown when a bubble is on screen for the first time. [CHAR LIMIT=60]--> <!-- Title text for the bubbles feature education cling shown when a bubble is on screen for the first time. [CHAR LIMIT=60]-->
<string name="bubbles_user_education_title">Keep chats up front</string> <string name="bubbles_user_education_title">Chat using bubbles</string>
<!-- Descriptive text for the bubble feature education cling shown when a bubble is on screen for the first time. [CHAR LIMIT=NONE] --> <!-- Descriptive text for the bubble feature education cling shown when a bubble is on screen for the first time. [CHAR LIMIT=NONE] -->
<string name="bubbles_user_education_description">New chats from <xliff:g id="app_name" example="YouTube">%1$s</xliff:g> will appear as bubbles. Tap a bubble to open it. Drag to move it.\n\nTap the bubble</string> <string name="bubbles_user_education_description">New conversations appear as floating icons, or bubbles. Tap to open bubble. Drag to move it.</string>
<!-- Text for the bubble "manage" button feature education cling shown when a bubble is on screen for the first time. [CHAR LIMIT=80]--> <!-- Title text for the bubble "manage" button tool tip highlighting where users can go to control bubble settings. [CHAR LIMIT=60]-->
<string name="bubbles_user_education_manage_title">Control bubbles anytime</string>
<!-- Descriptive text for the bubble "manage" button tool tip highlighting where users can go to control bubble settings. [CHAR LIMIT=80]-->
<string name="bubbles_user_education_manage">Tap Manage to turn off bubbles from this app</string> <string name="bubbles_user_education_manage">Tap Manage to turn off bubbles from this app</string>
<!-- Button text for dismissing the bubble "manage" button tool tip [CHAR LIMIT=20]-->
<string name="bubbles_user_education_got_it">Got it</string>
<!-- Notification content text when the system navigation mode changes as a result of changing the default launcher [CHAR LIMIT=NONE] --> <!-- Notification content text when the system navigation mode changes as a result of changing the default launcher [CHAR LIMIT=NONE] -->
<string name="notification_content_system_nav_changed">System navigation updated. To make changes, go to Settings.</string> <string name="notification_content_system_nav_changed">System navigation updated. To make changes, go to Settings.</string>

View File

@@ -1074,11 +1074,6 @@ public class BubbleStackView extends FrameLayout {
*/ */
private boolean maybeShowStackUserEducation() { private boolean maybeShowStackUserEducation() {
if (mShouldShowUserEducation && mUserEducationView.getVisibility() != VISIBLE) { if (mShouldShowUserEducation && mUserEducationView.getVisibility() != VISIBLE) {
Bubble b = mBubbleData.getSelectedBubble();
TextView description = mUserEducationView.findViewById(R.id.user_education_description);
description.setText(mContext.getString(
R.string.bubbles_user_education_description, b.getAppName()));
mUserEducationView.setAlpha(0); mUserEducationView.setAlpha(0);
mUserEducationView.setVisibility(VISIBLE); mUserEducationView.setVisibility(VISIBLE);
// Post so we have height of mUserEducationView // Post so we have height of mUserEducationView