Merge "Fix crash condition by adding a null check in DigitalWellBeingToast" into tm-dev

This commit is contained in:
Jeremy Sim
2022-03-22 00:39:47 +00:00
committed by Android (Google) Code Review
@@ -306,7 +306,7 @@ public final class DigitalWellBeingToast {
private void setBanner(@Nullable View view) {
mBanner = view;
if (view != null) {
if (view != null && mTaskView.getRecentsView() != null) {
setupAndAddBanner();
setBannerOutline();
}