Merge "Disable opening expanded QS from the lockscreen on large screen devices" into sc-v2-dev

This commit is contained in:
Michał Brzeziński
2021-10-08 10:38:26 +00:00
committed by Android (Google) Code Review

View File

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