Merge "Don't recycle replaced nodes in a11y cache" into oc-mr1-dev

This commit is contained in:
TreeHugger Robot
2017-10-12 01:24:48 +00:00
committed by Android (Google) Code Review
2 changed files with 0 additions and 3 deletions

View File

@@ -329,8 +329,6 @@ public final class AccessibilityCache {
final long oldParentId = oldInfo.getParentNodeId();
if (info.getParentNodeId() != oldParentId) {
clearSubTreeLocked(windowId, oldParentId);
} else {
oldInfo.recycle();
}
}

View File

@@ -77,7 +77,6 @@ public class AccessibilityCacheTest {
mAccessibilityCache.clear();
AccessibilityInteractionClient.getInstance().clearCache();
assertEquals(0, numA11yWinInfosInUse.get());
assertEquals(0, numA11yNodeInfosInUse.get());
}
@Test