Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java +11 −4 Original line number Diff line number Diff line Loading @@ -590,6 +590,7 @@ public class NotificationPanelViewController extends PanelViewController { */ private ValueAnimator mQsClippingAnimation = null; private final Rect mKeyguardStatusAreaClipBounds = new Rect(); private final Region mQsInterceptRegion = new Region(); /** * The alpha of the views which only show on the keyguard but not in shade / shade locked Loading Loading @@ -2670,10 +2671,16 @@ public class NotificationPanelViewController extends PanelViewController { return false; } View header = mKeyguardShowing || mQs == null ? mKeyguardStatusBar : mQs.getHeader(); final boolean onHeader = x >= mQsFrame.getX() && x <= mQsFrame.getX() + mQsFrame.getWidth() && y >= header.getTop() && y <= header.getBottom(); mQsInterceptRegion.set( /* left= */ (int) mQsFrame.getX(), /* top= */ header.getTop(), /* right= */ (int) mQsFrame.getX() + mQsFrame.getWidth(), /* bottom= */ header.getBottom()); // Also allow QS to intercept if the touch is near the notch. mStatusBarTouchableRegionManager.updateRegionForNotch(mQsInterceptRegion); final boolean onHeader = mQsInterceptRegion.contains((int) x, (int) y); if (mQsExpanded) { return onHeader || (yDiff < 0 && isInQsArea(x, y)); } else { Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarTouchableRegionManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -223,7 +223,7 @@ public final class StatusBarTouchableRegionManager implements Dumpable { } } private void updateRegionForNotch(Region touchableRegion) { void updateRegionForNotch(Region touchableRegion) { WindowInsets windowInsets = mNotificationShadeWindowView.getRootWindowInsets(); if (windowInsets == null) { Log.w(TAG, "StatusBarWindowView is not attached."); Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java +11 −4 Original line number Diff line number Diff line Loading @@ -590,6 +590,7 @@ public class NotificationPanelViewController extends PanelViewController { */ private ValueAnimator mQsClippingAnimation = null; private final Rect mKeyguardStatusAreaClipBounds = new Rect(); private final Region mQsInterceptRegion = new Region(); /** * The alpha of the views which only show on the keyguard but not in shade / shade locked Loading Loading @@ -2670,10 +2671,16 @@ public class NotificationPanelViewController extends PanelViewController { return false; } View header = mKeyguardShowing || mQs == null ? mKeyguardStatusBar : mQs.getHeader(); final boolean onHeader = x >= mQsFrame.getX() && x <= mQsFrame.getX() + mQsFrame.getWidth() && y >= header.getTop() && y <= header.getBottom(); mQsInterceptRegion.set( /* left= */ (int) mQsFrame.getX(), /* top= */ header.getTop(), /* right= */ (int) mQsFrame.getX() + mQsFrame.getWidth(), /* bottom= */ header.getBottom()); // Also allow QS to intercept if the touch is near the notch. mStatusBarTouchableRegionManager.updateRegionForNotch(mQsInterceptRegion); final boolean onHeader = mQsInterceptRegion.contains((int) x, (int) y); if (mQsExpanded) { return onHeader || (yDiff < 0 && isInQsArea(x, y)); } else { Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarTouchableRegionManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -223,7 +223,7 @@ public final class StatusBarTouchableRegionManager implements Dumpable { } } private void updateRegionForNotch(Region touchableRegion) { void updateRegionForNotch(Region touchableRegion) { WindowInsets windowInsets = mNotificationShadeWindowView.getRootWindowInsets(); if (windowInsets == null) { Log.w(TAG, "StatusBarWindowView is not attached."); Loading