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
This commit is contained in:
Nataniel Borges
2023-01-01 10:31:46 +00:00
parent ed96ad4fc4
commit 0d4a2d2919

View File

@@ -113,6 +113,7 @@ export class Presenter {
rect.stableId = display.stableId;
rect.displayId = display.id;
rect.isDisplay = true;
rect.cornerRadius = 0;
rect.isVirtual = false;
return rect;
}) ?? [];
@@ -124,6 +125,7 @@ export class Presenter {
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);
}