Merge "Don't update notification layer when collapsing the panel" into lmp-dev

This commit is contained in:
Jorim Jaggi
2014-09-05 16:22:24 +00:00
committed by Android (Google) Code Review

View File

@@ -1278,7 +1278,7 @@ public class NotificationPanelView extends PanelView implements
private void updateNotificationTranslucency() {
float alpha = (getNotificationsTopY() + mNotificationStackScroller.getItemHeight())
/ (mQsMinExpansionHeight + mNotificationStackScroller.getBottomStackPeekSize()
+ mNotificationStackScroller.getCollapseSecondCardPadding());
- mNotificationStackScroller.getCollapseSecondCardPadding());
alpha = Math.max(0, Math.min(alpha, 1));
alpha = (float) Math.pow(alpha, 0.75);
if (alpha != 1f && mNotificationStackScroller.getLayerType() != LAYER_TYPE_HARDWARE) {