OSDN Git Service

Settings may show enabled accessiiblity services after restore even if accessibility...
authorSvetoslav Ganov <svetoslavganov@google.com>
Fri, 23 Sep 2011 23:47:31 +0000 (16:47 -0700)
committerSvetoslav Ganov <svetoslavganov@google.com>
Fri, 23 Sep 2011 23:47:41 +0000 (16:47 -0700)
commitcb0a7a82a6c747fafd6c46c2949396a0b549a104
treec31de8a05273adaae8a77ea6a84855f91c8d6ad2
parent9fe945b854f92314ad387705ad20a129e46c317a
Settings may show enabled accessiiblity services after restore even if accessibility is off.

Now the state of accessibility is determined from the number of running, i.e. enabled and
installed, accessibility services - more than zero access is on else it is off. After a
restore the device may have some enabled and installed services but disabled accessibility
setting. In such case settings should respect the restored values and the services should
be displayed as disabled initially and then enabling one of them will enable accessibility.

bug:5367404

Change-Id: If3756aba3f59e282000247e99f87ebff2b64c9fd
src/com/android/settings/AccessibilitySettings.java