Change defaults to 0 for taskId and layerId.

Bug: b/198634721
Test: check upload of tags with only a taskId or a layerId.
Change-Id: I8fc44f6074a1e17264177d251f1bd7ba319701d2
This commit is contained in:
Priyanka
2021-09-03 15:12:19 +00:00
parent 31b30204be
commit 6d70b2ed93

View File

@@ -373,8 +373,8 @@ export default {
const transitionColor = transitionMap.get(transitionType).color;
var tooltip = `${transitionDesc}. Start: ${nanos_to_string(startTs)}. End: ${nanos_to_string(endTs)}.`;
if (layerId!==-1 && taskId===-1) tooltip += " SF only.";
else if (taskId!==-1 && layerId===-1) tooltip += " WM only.";
if (layerId!==0 && taskId===0) tooltip += " SF only.";
else if (taskId!==0 && layerId===0) tooltip += " WM only.";
return new Transition(this.position(startTs), startTs, endTs, transitionWidth, transitionColor, overlap, tooltip);
},