Remove use of the deprecated AccessibilityNodeInfo boundsInParent API (flutter/engine#10773)

This commit is contained in:
Jason Simmons
2019-08-08 15:25:56 -07:00
committed by GitHub
parent 71c394f5c3
commit 56208b0de7

View File

@@ -200,10 +200,6 @@ final class AccessibilityViewEmbedder {
@NonNull Rect displayBounds,
@NonNull AccessibilityNodeInfo resultNode
) {
Rect boundsInParent = new Rect();
originNode.getBoundsInParent(boundsInParent);
resultNode.setBoundsInParent(boundsInParent);
Rect boundsInScreen = new Rect();
originNode.getBoundsInScreen(boundsInScreen);
boundsInScreen.offset(displayBounds.left, displayBounds.top);