commit | c789ade45ea837214e390a9b259e338f893d30d9 | [log] [tgz] |
---|---|---|
author | Jeremy Sim <jeremysim@google.com> | Tue Mar 22 00:39:47 2022 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Tue Mar 22 00:39:47 2022 +0000 |
tree | b96c09dd32c54222aafa70d71a35e4ab7dcdc045 | |
parent | c0422b8a4894db79f15df6c05fe641da4fd6523c [diff] | |
parent | 64212c5439dd40204256630dd7c01cf68a02047f [diff] |
Merge "Fix crash condition by adding a null check in DigitalWellBeingToast" into tm-dev
diff --git a/quickstep/src/com/android/quickstep/views/DigitalWellBeingToast.java b/quickstep/src/com/android/quickstep/views/DigitalWellBeingToast.java index 27a748d..79b15c7 100644 --- a/quickstep/src/com/android/quickstep/views/DigitalWellBeingToast.java +++ b/quickstep/src/com/android/quickstep/views/DigitalWellBeingToast.java
@@ -306,7 +306,7 @@ private void setBanner(@Nullable View view) { mBanner = view; - if (view != null) { + if (view != null && mTaskView.getRecentsView() != null) { setupAndAddBanner(); setBannerOutline(); }