Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d58cb641 authored by Svetoslav's avatar Svetoslav Committed by Android Git Automerger
Browse files

am 5ec87159: am 09b81193: am 85daf4f0: Merge "Accessibility events may be...

am 5ec87159: am 09b81193: am 85daf4f0: Merge "Accessibility events may be fired even if no services observe them." into lmp-dev

* commit '5ec87159e8a2f33e583af20f1a2c06fcccf00c4a':
  Accessibility events may be fired even if no services observe them.
parents ea9d0e5d fa282523
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1169,7 +1169,8 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {

        // No enabled installed services => disable accessibility to avoid
        // sending accessibility events with no recipient across processes.
        if (isEnabled && userState.mEnabledServices.isEmpty()) {
        if (isEnabled && userState.mBoundServices.isEmpty()
                && userState.mBindingServices.isEmpty()) {
            userState.mIsAccessibilityEnabled = false;
            Settings.Secure.putIntForUser(mContext.getContentResolver(),
                    Settings.Secure.ACCESSIBILITY_ENABLED, 0, userState.mUserId);