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

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

am d46e5c59: am 5ec87159: am 09b81193: am 85daf4f0: Merge "Accessibility...

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

* commit 'd46e5c59586f478ce1982a229751a3304f676005':
  Accessibility events may be fired even if no services observe them.
parents cdde21e5 d58cb641
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);