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

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

am 6af2b51b: Merge "Accessibility window changes not reported." into lmp-preview-dev

* commit '6af2b51b3c233d2c9d77282355c798c01a8afba1':
  Accessibility window changes not reported.
parents 9ad11ca0 2f450556
Loading
Loading
Loading
Loading
+5 −11
Original line number Original line Diff line number Diff line
@@ -225,17 +225,11 @@ public final class AccessibilityInteractionClient
        try {
        try {
            IAccessibilityServiceConnection connection = getConnection(connectionId);
            IAccessibilityServiceConnection connection = getConnection(connectionId);
            if (connection != null) {
            if (connection != null) {
                List<AccessibilityWindowInfo> windows = sAccessibilityCache.getWindows();
                // The system is just sending data for windows that we introspected
                if (windows != null) {
                // and changed but not ones that appeared, so we have to always call
                    if (DEBUG) {
                // into the system process. This is less expensice as opposed to
                        Log.i(LOG_TAG, "Window cache hit");
                // sending all windows on every window change.
                    }
                List<AccessibilityWindowInfo> windows = connection.getWindows();
                    return windows;
                }
                if (DEBUG) {
                    Log.i(LOG_TAG, "Window cache miss");
                }
                windows = connection.getWindows();
                if (windows != null) {
                if (windows != null) {
                    final int windowCount = windows.size();
                    final int windowCount = windows.size();
                    for (int i = 0; i < windowCount; i++) {
                    for (int i = 0; i < windowCount; i++) {