Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/HeadsUpManagerPhone.java +5 −2 Original line number Original line Diff line number Diff line Loading @@ -363,12 +363,15 @@ public class HeadsUpManagerPhone extends HeadsUpManager implements Dumpable, } } public Region calculateTouchableRegion() { public Region calculateTouchableRegion() { if (!hasPinnedHeadsUp()) { NotificationEntry topEntry = getTopEntry(); // This call could be made in an inconsistent state while the pinnedMode hasn't been // updated yet, but callbacks leading out of the headsUp manager, querying it. Let's // therefore also check if the topEntry is null. if (!hasPinnedHeadsUp() || topEntry == null) { mTouchableRegion.set(0, 0, mStatusBarWindowView.getWidth(), mStatusBarHeight); mTouchableRegion.set(0, 0, mStatusBarWindowView.getWidth(), mStatusBarHeight); updateRegionForNotch(mTouchableRegion); updateRegionForNotch(mTouchableRegion); } else { } else { NotificationEntry topEntry = getTopEntry(); if (topEntry.isChildInGroup()) { if (topEntry.isChildInGroup()) { final NotificationEntry groupSummary = final NotificationEntry groupSummary = mGroupManager.getGroupSummary(topEntry.notification); mGroupManager.getGroupSummary(topEntry.notification); Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/HeadsUpManagerPhone.java +5 −2 Original line number Original line Diff line number Diff line Loading @@ -363,12 +363,15 @@ public class HeadsUpManagerPhone extends HeadsUpManager implements Dumpable, } } public Region calculateTouchableRegion() { public Region calculateTouchableRegion() { if (!hasPinnedHeadsUp()) { NotificationEntry topEntry = getTopEntry(); // This call could be made in an inconsistent state while the pinnedMode hasn't been // updated yet, but callbacks leading out of the headsUp manager, querying it. Let's // therefore also check if the topEntry is null. if (!hasPinnedHeadsUp() || topEntry == null) { mTouchableRegion.set(0, 0, mStatusBarWindowView.getWidth(), mStatusBarHeight); mTouchableRegion.set(0, 0, mStatusBarWindowView.getWidth(), mStatusBarHeight); updateRegionForNotch(mTouchableRegion); updateRegionForNotch(mTouchableRegion); } else { } else { NotificationEntry topEntry = getTopEntry(); if (topEntry.isChildInGroup()) { if (topEntry.isChildInGroup()) { final NotificationEntry groupSummary = final NotificationEntry groupSummary = mGroupManager.getGroupSummary(topEntry.notification); mGroupManager.getGroupSummary(topEntry.notification); Loading