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

Commit 0ee1d87c authored by Svet Ganov's avatar Svet Ganov Committed by Android Git Automerger
Browse files

am 515f14d4: am b22552c3: Merge "Send accessibility events with no window." into lmp-dev

* commit '515f14d4':
  Send accessibility events with no window.
parents e43110ac 515f14d4
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -148,6 +148,8 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {

    private static final int MAX_POOL_SIZE = 10;

    private static final int WINDOW_ID_UNKNOWN = -1;

    private static int sIdCounter = 0;

    private static int sNextWindowId;
@@ -1079,7 +1081,7 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
            return false;
        }

        if (!event.isImportantForAccessibility()
        if (event.getWindowId() != WINDOW_ID_UNKNOWN && !event.isImportantForAccessibility()
                && (service.mFetchFlags
                        & AccessibilityNodeInfo.FLAG_INCLUDE_NOT_IMPORTANT_VIEWS) == 0) {
            return false;