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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user