Merge "Correct log format while comparing an existing task for new component"

This commit is contained in:
Jerry Chang
2023-02-04 06:13:13 +00:00
committed by Android (Google) Code Review

View File

@@ -385,9 +385,9 @@ class RootWindowContainer extends WindowContainer<DisplayContent>
}
ProtoLog.d(WM_DEBUG_TASKS, "Comparing existing cls=%s /aff=%s to new cls=%s /aff=%s",
r.getTask().rootAffinity, mIntent.getComponent().flattenToShortString(),
mInfo.taskAffinity, (task.realActivity != null
? task.realActivity.flattenToShortString() : ""));
(task.realActivity != null ? task.realActivity.flattenToShortString() : ""),
task.rootAffinity, mIntent.getComponent().flattenToShortString(),
mTaskAffinity);
// TODO Refactor to remove duplications. Check if logic can be simplified.
if (task.realActivity != null && task.realActivity.compareTo(cls) == 0
&& Objects.equals(documentData, taskDocumentData)) {