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

Commit bbc1934e authored by Charles Chen's avatar Charles Chen
Browse files

Fixing bug 2003639 - this is a fix to prevent the AccessibilityManagerService

from crashing if it gets an invalid accessibility event.
parent 719eba5b
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();
    }