diff options
| author | 2020-06-10 22:18:08 +0000 | |
|---|---|---|
| committer | 2020-06-10 22:18:08 +0000 | |
| commit | 907e00b24f419f72a41d13fd7d2aa0e1769018be (patch) | |
| tree | aec58008761cdd8c42e913d1170dfae428c25303 | |
| parent | 4181d96ab7dfa94cddb90f88291fcad3b8ca9d44 (diff) | |
| parent | e78129e3f167f6b61f98b47c7beeaf07a5b124c6 (diff) | |
Merge "Don't crash if we've already been educated about Bubbles." into rvc-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java index 6bf20b88f64a..492d138e7ddb 100644 --- a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java +++ b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java @@ -1975,9 +1975,12 @@ public class BubbleStackView extends FrameLayout @Override public void subtractObscuredTouchableRegion(Region touchableRegion, View view) { // If the notification shade is expanded, or the manage menu is open, or we are showing - // manage bubbles user education, we shouldn't let the - // ActivityView steal any touch events from any location. - if (!mIsExpanded || mShowingManage || mManageEducationView.getVisibility() == VISIBLE) { + // manage bubbles user education, we shouldn't let the ActivityView steal any touch events + // from any location. + if (!mIsExpanded + || mShowingManage + || (mManageEducationView != null + && mManageEducationView.getVisibility() == VISIBLE)) { touchableRegion.setEmpty(); } } |