Fixing crash in ViewGroup.dispatchPopulateAccessibilityEvent
1. There was a double call to recycle of a pooled instance which was causing an exception. Removed an unnecessary call. bug:6408689 Change-Id: Ic74b743c6be28ca95ab84b15f28edb5bc95f0a88
This commit is contained in:
@@ -2438,7 +2438,6 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
|
||||
if ((child.mViewFlags & VISIBILITY_MASK) == VISIBLE) {
|
||||
handled = child.dispatchPopulateAccessibilityEvent(event);
|
||||
if (handled) {
|
||||
children.recycle();
|
||||
return handled;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user