Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e83f128 authored by Hyangseok Chae's avatar Hyangseok Chae Committed by Chavi Weingarten
Browse files

Support talkback for functions on the caption view.

Accessibility talkback feature works partially.
Support talkback for a title on caption view.

Test: manual
1. Enable Accessibility TalkBack
2. Execute application with freeform
3. Touch title on the freeform window
4. Check speech "App in Pop-up window"

Bug: 144271785

Change-Id: I5ab3cd23610f37a8b930de4710abf8ae62f65b84
(cherry picked from commit b51a68057f5d1498e3a87a10928d8377ad82acd0)
parent 2da22cdc
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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
+3 −0
Original line number Diff line number Diff line
@@ -5366,4 +5366,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>
+2 −0
Original line number Diff line number Diff line
@@ -3761,4 +3761,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>