Made the drag down anywhere on lockscreen go to the shade locked

Previously we would allow going to the expanded qs first.

Fixes: 137552697
Test: drag down on top while bypassing
Change-Id: Ia4a31e1ce4e8a85f5c23b4dd2db2f6de2d2c112e
This commit is contained in:
Selim Cinek
2019-07-30 13:57:01 -07:00
parent 0497a18767
commit 5f1fb46ed9
2 changed files with 3 additions and 2 deletions

View File

@@ -1967,7 +1967,8 @@ public class NotificationPanelView extends PanelView implements
* @return Whether we should intercept a gesture to open Quick Settings.
*/
private boolean shouldQuickSettingsIntercept(float x, float y, float yDiff) {
if (!mQsExpansionEnabled || mCollapsedOnDown) {
if (!mQsExpansionEnabled || mCollapsedOnDown
|| (mKeyguardShowing && mKeyguardBypassController.getBypassEnabled())) {
return false;
}
View header = mKeyguardShowing || mQs == null ? mKeyguardStatusBar : mQs.getHeader();

View File

@@ -419,7 +419,7 @@ public class StatusBarWindowView extends FrameLayout {
if (mNotificationPanel.isFullyExpanded()
&& mStatusBarStateController.getState() == StatusBarState.KEYGUARD
&& !mService.isBouncerShowing()
&& (!mBypassController.getBypassEnabled() || mNotificationPanel.isQsExpanded())
&& !mBypassController.getBypassEnabled()
&& !mService.isDozing()) {
intercept = mDragDownHelper.onInterceptTouchEvent(ev);
}