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

This commit is contained in:
Jeremy Sim authored and Android (Google) Code Review committed 2022-03-22 00:39:47 +00:00
commit c789ade45e
1 file changed
+1 -1
@@ -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();
}