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

Commit b22552c3 authored by Svet Ganov's avatar Svet Ganov Committed by Android (Google) Code Review
Browse files

Merge "Send accessibility events with no window." into lmp-dev

parents 447369f2 d5b0842a
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;