Remove the unnecessary warning log

While cold-start an activity, a root task was created and
the activity type was set before adding the root task to TDA.
Therefore, the configuration needs to be updated and checked
for multi-window mode support. So, the warning log was dumped
since the root task was not added to TDA yet.

Bug: 163976519
Test: cold start an activity
Change-Id: I12f9167263939d760dabdd1098404fa9fa67e2c2
This commit is contained in:
Louis Chang
2022-03-30 09:48:52 +08:00
parent fb0ae657e3
commit 3cb037b67e

View File

@@ -1825,8 +1825,6 @@ class TaskFragment extends WindowContainer<WindowContainer> {
return false;
}
if (tda == null) {
Slog.w(TAG, "Can't find TaskDisplayArea to determine support for multi"
+ " window. Task id=" + getTaskId() + " attached=" + isAttached());
return false;
}
if (!getTask().isResizeable() && !tda.supportsNonResizableMultiWindow()) {