Fix rects view for WM trace
The rounded corners property should be 0 on WM traces, instead of null
Fixes: 264024995
Test: open a wm trace and check rects view
Change-Id: I53e6668a8bdaa460e2e740936b719a3a4f813f8c
diff --git a/tools/winscope-ng/src/viewers/viewer_window_manager/presenter.ts b/tools/winscope-ng/src/viewers/viewer_window_manager/presenter.ts
index 19bce92..bdeca98 100644
--- a/tools/winscope-ng/src/viewers/viewer_window_manager/presenter.ts
+++ b/tools/winscope-ng/src/viewers/viewer_window_manager/presenter.ts
@@ -113,6 +113,7 @@
rect.stableId = display.stableId;
rect.displayId = display.id;
rect.isDisplay = true;
+ rect.cornerRadius = 0;
rect.isVirtual = false;
return rect;
}) ?? [];
@@ -124,6 +125,7 @@
const rect = it.rect;
rect.id = it.layerId;
rect.displayId = it.displayId;
+ rect.cornerRadius = 0;
if (!this.displayIds.includes(it.displayId)) {
this.displayIds.push(it.displayId);
}