summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Josh Tsuji <tsuji@google.com> 2020-06-10 22:18:08 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2020-06-10 22:18:08 +0000
commit907e00b24f419f72a41d13fd7d2aa0e1769018be (patch)
treeaec58008761cdd8c42e913d1170dfae428c25303
parent4181d96ab7dfa94cddb90f88291fcad3b8ca9d44 (diff)
parente78129e3f167f6b61f98b47c7beeaf07a5b124c6 (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.java9
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();
}
}