Do not expand quick settings when shade first opens

Fixes: 187200208
Test: manual
Change-Id: Id5aee36cc8c3c650b007810b752b1fe0955fd263
This commit is contained in:
Lyn Han
2021-06-04 14:16:46 -05:00
parent c0e753076c
commit 7c9f13310d

View File

@@ -2203,7 +2203,7 @@ public class NotificationPanelViewController extends PanelViewController {
final int qsPanelBottomY = calculateQsBottomPosition(computeQsExpansionFraction());
final boolean visible = (computeQsExpansionFraction() > 0 || qsPanelBottomY > 0)
&& !mShouldUseSplitNotificationShade;
setQsExpansionEnabled(mAmbientState.getScrollY() == 0);
setQsExpansionEnabled(mAmbientState.getScrollY() == 0 && !mAmbientState.isShadeOpening());
if (!mShouldUseSplitNotificationShade) {
if (mTransitioningToFullShadeProgress > 0.0f) {