OSDN Git Service

Refine adjustIsVisibleToUser
authorJackal Guo <jackalguo@google.com>
Wed, 20 Mar 2019 09:43:19 +0000 (17:43 +0800)
committerJackal Guo <jackalguo@google.com>
Thu, 21 Mar 2019 01:45:24 +0000 (09:45 +0800)
commitecd09bb6b4ceaa6b77c4df860aa64487a46a3634
treef90a9c46ba9f5ee85d12739716cb228f4b81b1a4
parent22640b9ac783a131a5bcc83ea43c7047bda6394d
Refine adjustIsVisibleToUser

A11yInteractionController would adjust A11yNodeInfo's visible when it
is outside of interactive region. Therefore, the top row characters
in pop-up of IME additional characters may be invisible to users. It
causes a11y services can't select these A11yNodeInfo.

Check if window type of ViewRootImpl should be bypassed adjustment.

Bug: 113531901
Test: A11y CTS & unit test
Test: Check if the top row characters in pop-up of IME additional
      characters could be selected by Switch Access & Voice Access

Change-Id: If8d55720be69ea17090c26b12ce29ab64fdc5440
core/java/android/view/AccessibilityInteractionController.java