Commit 31c4942c authored by Alice Wang's avatar Alice Wang Committed by Chromium LUCI CQ

[Android][A11y] Make the title field focusable for a11y

This CL makes the title field of web sign-in bottom sheet focusable
so that we can then send an a11y event from this field to announce the
title.

Bug: 1143259
Change-Id: I73f19a37dd5cf3a23454400149c4db2fc26db0f5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2577204Reviewed-by: default avatarTheresa  <twellington@chromium.org>
Commit-Queue: Alice Wang <aliceywang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#834279}
parent 942f73a1
......@@ -148,6 +148,7 @@ class AccountPickerBottomSheetView implements BottomSheetContent {
void setDisplayedView(@ViewState int state) {
mViewFlipper.setDisplayedChild(state);
View titleView = mViewFlipper.getChildAt(state).findViewById(sTitleIds[state]);
titleView.setFocusable(true);
titleView.sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_FOCUSED);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment