Merge "Change defaults to 0 for taskId and layerId."

This commit is contained in:
TreeHugger Robot
2021-09-06 16:44:40 +00:00
committed by Android (Google) Code Review

View File

@@ -371,8 +371,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);
},