commit | 816c8e4735f975f4d8bffa1a5a37be6557424ea3 | [log] [tgz] |
---|---|---|
author | Selim Cinek <cinek@google.com> | Thu Nov 19 12:00:45 2015 -0800 |
committer | Selim Cinek <cinek@google.com> | Mon Nov 30 17:45:15 2015 -0800 |
tree | e03a09fafbfc60efea756054abe74b6173937ef2 | |
parent | 90dcf6d70686abab26b508b0640b90319381d30b [diff] |
Legacy custom views now get properly layed out again Since the minheight grew, all notifications grew. Legacy custom notifications need to stay the same height though. Change-Id: I469c448014c3d3c31526466d06a60ac44838b274
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 d2fae6f..c0e3ec1 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
@@ -1694,7 +1694,7 @@ } private float getFadeoutAlpha() { - float alpha = (getNotificationsTopY() + mNotificationStackScroller.getItemHeight()) + float alpha = (getNotificationsTopY() + mNotificationStackScroller.getFirstItemMinHeight()) / (mQsMinExpansionHeight + mNotificationStackScroller.getBottomStackPeekSize() - mNotificationStackScroller.getCollapseSecondCardPadding()); alpha = Math.max(0, Math.min(alpha, 1));
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index 1a0d409f..05660ec 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
@@ -3129,6 +3129,7 @@ mNaturalBarHeight = res.getDimensionPixelSize( com.android.internal.R.dimen.status_bar_height); + mRowMinHeightLegacy = res.getDimensionPixelSize(R.dimen.notification_min_height_legacy); mRowMinHeight = res.getDimensionPixelSize(R.dimen.notification_min_height); mRowMaxHeight = res.getDimensionPixelSize(R.dimen.notification_max_height);