Block the view bebind the dialog scrim in a11y mode
This CL makes the views behind dialog scrim unselectable through View#setImportantForAccessibility. Since the parent view of the dialog view is CoordinatorLayout which is the same as those of CompositorViewHolder, toolbar, etc, this CL makes all other views in the same hierachy unselectable when dialog is open, and restores the importance when dialog is closed. Bug: 1101561 Change-Id: Iba726c3118d959e730108f44fc3e97b137a660b5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2364795 Commit-Queue: Yue Zhang <yuezhanggg@chromium.org> Reviewed-by:Wei-Yin Chen (陳威尹) <wychen@chromium.org> Cr-Commit-Position: refs/heads/master@{#800372}
Showing
Please register or sign in to comment