Merge "Support talkback for functions on the caption view."

This commit is contained in:
Chavi Weingarten
2019-11-18 20:34:59 +00:00
committed by Android (Google) Code Review
3 changed files with 7 additions and 0 deletions

View File

@@ -123,6 +123,8 @@ public class DecorCaptionView extends ViewGroup implements View.OnTouchListener,
private void init(Context context) {
mDragSlop = ViewConfiguration.get(context).getScaledTouchSlop();
mGestureDetector = new GestureDetector(context, this);
setContentDescription(context.getString(R.string.accessibility_freeform_caption,
context.getPackageManager().getApplicationLabel(context.getApplicationInfo())));
}
@Override

View File

@@ -5320,4 +5320,7 @@
<string name="accessibility_system_action_lock_screen_label">Lock Screen</string>
<!-- Label for taking screenshot action [CHAR LIMIT=NONE] -->
<string name="accessibility_system_action_screenshot_label">Screenshot</string>
<!-- Accessibility description of caption view -->
<string name="accessibility_freeform_caption"><xliff:g id="app_name">%1$s</xliff:g> app in Pop-up window.</string>
</resources>

View File

@@ -3763,4 +3763,6 @@
<java-symbol type="string" name="accessibility_system_action_recents_label" />
<java-symbol type="string" name="accessibility_system_action_screenshot_label" />
<java-symbol type="string" name="accessibility_system_action_toggle_split_screen_label" />
<java-symbol type="string" name="accessibility_freeform_caption" />
</resources>