Merge "Do not expand quick settings when shade first opens" into sc-dev

This commit is contained in:
Lyn Han
2021-06-05 04:55:52 +00:00
committed by Android (Google) Code Review

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) {