Merge "Fixs the window bounds not correct after rotation" into tm-dev

This commit is contained in:
TreeHugger Robot
2022-03-22 04:00:01 +00:00
committed by Android (Google) Code Review

View File

@@ -811,8 +811,8 @@ public final class AccessibilityWindowsPopulator extends WindowInfosListener {
RectF windowFrame = TEMP_RECTF;
windowFrame.set(rect);
inverseMatrix.mapRect(windowFrame);
displayMatrix.mapRect(windowFrame);
inverseMatrix.mapRect(windowFrame);
// Union all rects.
outRegion.union(new Rect((int) windowFrame.left, (int) windowFrame.top,
(int) windowFrame.right, (int) windowFrame.bottom));