Merge "Don't recycle replaced nodes in a11y cache" into oc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
15c8747ad9
@@ -329,8 +329,6 @@ public final class AccessibilityCache {
|
||||
final long oldParentId = oldInfo.getParentNodeId();
|
||||
if (info.getParentNodeId() != oldParentId) {
|
||||
clearSubTreeLocked(windowId, oldParentId);
|
||||
} else {
|
||||
oldInfo.recycle();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -77,7 +77,6 @@ public class AccessibilityCacheTest {
|
||||
mAccessibilityCache.clear();
|
||||
AccessibilityInteractionClient.getInstance().clearCache();
|
||||
assertEquals(0, numA11yWinInfosInUse.get());
|
||||
assertEquals(0, numA11yNodeInfosInUse.get());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user