Merge "[QS] Do not set QS visible when animating away." into tm-dev
This commit is contained in:
@@ -2315,8 +2315,9 @@ public class NotificationPanelViewController extends PanelViewController {
|
||||
void setQsExpansion(float height) {
|
||||
height = Math.min(Math.max(height, mQsMinExpansionHeight), mQsMaxExpansionHeight);
|
||||
mQsFullyExpanded = height == mQsMaxExpansionHeight && mQsMaxExpansionHeight != 0;
|
||||
boolean qsAnimatingAway = !mQsAnimatorExpand && mAnimatingQS;
|
||||
if (height > mQsMinExpansionHeight && !mQsExpanded && !mStackScrollerOverscrolling
|
||||
&& !mDozing) {
|
||||
&& !mDozing && !qsAnimatingAway) {
|
||||
setQsExpanded(true);
|
||||
} else if (height <= mQsMinExpansionHeight && mQsExpanded) {
|
||||
setQsExpanded(false);
|
||||
|
||||
Reference in New Issue
Block a user