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

am: 15c8747ad9

Change-Id: I1b1c16800319aac6abf8403f168d0b4343293fc0
This commit is contained in:
Phil Weaver
2017-10-12 01:38:32 +00:00
committed by android-build-merger
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