Merge "Fixed an issue where the qs position was wrong while bypassing" into sc-dev
This commit is contained in:
@@ -2574,16 +2574,19 @@ public class NotificationPanelViewController extends PanelViewController {
|
|||||||
// Small parallax as we pull down and clip QS
|
// Small parallax as we pull down and clip QS
|
||||||
startHeight = -mQsExpansionHeight * 0.2f;
|
startHeight = -mQsExpansionHeight * 0.2f;
|
||||||
}
|
}
|
||||||
if (mKeyguardBypassController.getBypassEnabled() && isOnKeyguard()
|
if (mKeyguardBypassController.getBypassEnabled() && isOnKeyguard()) {
|
||||||
&& mNotificationStackScrollLayoutController.isPulseExpanding()) {
|
if (mNotificationStackScrollLayoutController.isPulseExpanding()) {
|
||||||
if (!mPulseExpansionHandler.isExpanding()
|
if (!mPulseExpansionHandler.isExpanding()
|
||||||
&& !mPulseExpansionHandler.getLeavingLockscreen()) {
|
&& !mPulseExpansionHandler.getLeavingLockscreen()) {
|
||||||
// If we aborted the expansion we need to make sure the header doesn't reappear
|
// If we aborted the expansion we need to make sure the header doesn't reappear
|
||||||
// again after the header has animated away
|
// again after the header has animated away
|
||||||
appearAmount = 0;
|
appearAmount = 0;
|
||||||
|
} else {
|
||||||
|
appearAmount = mNotificationStackScrollLayoutController
|
||||||
|
.calculateAppearFractionBypass();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
appearAmount = mNotificationStackScrollLayoutController
|
appearAmount = 0.0f;
|
||||||
.calculateAppearFractionBypass();
|
|
||||||
}
|
}
|
||||||
startHeight = -mQs.getQsMinExpansionHeight();
|
startHeight = -mQs.getQsMinExpansionHeight();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user