From 12a6782d61dbefd5ba0bb286372936f957849637 Mon Sep 17 00:00:00 2001 From: Jorim Jaggi Date: Fri, 5 Sep 2014 16:01:00 +0200 Subject: [PATCH] Don't update notification layer when collapsing the panel This change makes sure that we don't update the hardware for the notification layer when we collapse or expand the panel. It does so by starting the fading when the panel is more collapsed. Bug: 17287256 Change-Id: I35dc35494d71d816b7e6c5821b769847aaa183b0 --- .../android/systemui/statusbar/phone/NotificationPanelView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java index f467e27b6fb4b..cf5aebc9780ae 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java @@ -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) {