OSDN Git Service

ConfirmationDialog: Fail if accessibility services are running.
authorDavid Zeuthen <zeuthen@google.com>
Mon, 12 Mar 2018 20:47:03 +0000 (16:47 -0400)
committerDavid Zeuthen <zeuthen@google.com>
Mon, 12 Mar 2018 21:27:38 +0000 (17:27 -0400)
commite3aad1c076cd5ac1b1c5496597bfce3619dd50ff
treee43f2dcd463745d54c1bfb44601d679dced9aa75
parentcb956d256e83942fd4d7950f1670e5301d4a3556
ConfirmationDialog: Fail if accessibility services are running.

As the confirmation dialog only has limited accessibility support it
may not be usable by users requiring accessibility services.

Therefore, if the user has enabled accessibility services, fail with
ConfirmationNotAvailableException so the application can handle this
case. Also document this behavior.

Bug: 74545109
Test: Manually tested.
Change-Id: Ibfb80d217f5cbdc9ec2f4e0432dfdd88add69703
core/java/android/security/ConfirmationDialog.java