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

Commit 4ca6659f authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 8565 into donut

* changes:
  Fixing bug 2003639 - this is a fix to prevent the AccessibilityManagerService from crashing if it gets an invalid accessibility event.
parents 11ea3347 bbc1934e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -368,6 +368,9 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub
     * @param event The event.
     */
    private void tryRecycleLocked(AccessibilityEvent event) {
        if (event == null) {
            return;
        }
        int eventType = event.getEventType();
        List<Service> services = mServices;

@@ -378,7 +381,6 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub
                return;
            }
        }

        event.recycle();
    }