From 6d70b2ed934bdcf87bc138192361ed36763a7f51 Mon Sep 17 00:00:00 2001 From: Priyanka Date: Fri, 3 Sep 2021 15:12:19 +0000 Subject: [PATCH] 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 --- tools/winscope/src/mixins/Timeline.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/winscope/src/mixins/Timeline.js b/tools/winscope/src/mixins/Timeline.js index 90a2d175b..7410a828a 100644 --- a/tools/winscope/src/mixins/Timeline.js +++ b/tools/winscope/src/mixins/Timeline.js @@ -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); },