Enable qs open while shade expansion is still running

Fixes: 190837480
Test: slowly fling shade open, swipe qs open => qs opens, qs does not
show extra tiles during shade open (before second swipe to open qs)

Change-Id: I359935e55e24b4e7faaf5e9d3fdc80fc55d965b8
This commit is contained in:
Lyn Han
2021-06-29 18:13:53 -05:00
parent 117e58256b
commit f9a69c6084

View File

@@ -2286,8 +2286,7 @@ public class NotificationPanelViewController extends PanelViewController {
private void updateQSExpansionEnabledAmbient() {
final float scrollRangeToTop = mAmbientState.getTopPadding() - mQuickQsOffsetHeight;
mQsExpansionEnabledAmbient = mShouldUseSplitNotificationShade
|| (mAmbientState.getScrollY() <= scrollRangeToTop
&& !mAmbientState.isShadeOpening());
|| (mAmbientState.getScrollY() <= scrollRangeToTop);
setQsExpansionEnabled();
}