Merge "Add null check when logging quick switch" into sc-v2-dev

This commit is contained in:
TreeHugger Robot
2022-01-07 22:13:12 +00:00
committed by Android (Google) Code Review

View File

@@ -470,7 +470,9 @@ public class TaskView extends FrameLayout implements Reusable {
stubInfo.user = componentKey.user;
stubInfo.intent = new Intent().setComponent(componentKey.componentName);
stubInfo.title = task.title;
stubInfo.screenId = getRecentsView().indexOfChild(this);
if (getRecentsView() != null) {
stubInfo.screenId = getRecentsView().indexOfChild(this);
}
return stubInfo;
}