Fix QS interception on tablets
Only intercept when touching on the panel and not on the left or right of the panel. Fixes a bug where the user couldn't dismiss the panel by tapping outside. Bug: 17437547 Change-Id: Ice484a301683fa2df1f2a21f13977023b48189f4
This commit is contained in:
@@ -631,9 +631,10 @@ public class NotificationPanelView extends PanelView implements
|
||||
}
|
||||
|
||||
private boolean isInQsArea(float x, float y) {
|
||||
return mStatusBarState != StatusBarState.SHADE
|
||||
|| y <= mNotificationStackScroller.getBottomMostNotificationBottom()
|
||||
|| y <= mQsContainer.getY() + mQsContainer.getHeight();
|
||||
return mStatusBarState != StatusBarState.SHADE ||
|
||||
(x >= mScrollView.getLeft() && x <= mScrollView.getRight()) &&
|
||||
(y <= mNotificationStackScroller.getBottomMostNotificationBottom()
|
||||
|| y <= mQsContainer.getY() + mQsContainer.getHeight());
|
||||
}
|
||||
|
||||
private void handleQsDown(MotionEvent event) {
|
||||
|
||||
Reference in New Issue
Block a user