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

Commit a8d26e80 authored by Svetoslav's avatar Svetoslav Committed by Android (Google) Code Review
Browse files

Merge "Clear binder identity when sending window change accessibility events." into lmp-dev

parents 366390ce 9bf08c7b
Loading
Loading
Loading
Loading
+10 −5
Original line number Diff line number Diff line
@@ -3484,11 +3484,16 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
        }

        private void notifyWindowsChanged() {
            final long identity = Binder.clearCallingIdentity();
            try {
                // Let the client know the windows changed.
                AccessibilityEvent event = AccessibilityEvent.obtain(
                        AccessibilityEvent.TYPE_WINDOWS_CHANGED);
                event.setEventTime(SystemClock.uptimeMillis());
                sendAccessibilityEvent(event, mCurrentUserId);
            } finally {
                Binder.restoreCallingIdentity(identity);
            }
        }

        public boolean canGetAccessibilityNodeInfoLocked(Service service, int windowId) {