diff options
| author | 2014-06-04 21:49:02 +0000 | |
|---|---|---|
| committer | 2014-06-04 21:49:04 +0000 | |
| commit | 45474056ea9e3618d52869c5182a30e2300cd5c3 (patch) | |
| tree | 846cda9d9b3cf6cf15f3d17213cc3ac8e96592e0 | |
| parent | 4c6debb7678794401e9732cad4475e28ab91a496 (diff) | |
| parent | aa402d513a124f80b7bf3528ae8c7017e7876ad5 (diff) | |
Merge "Simplified maxPanelHeight logic." into lmp-preview-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java | 6 |
1 files changed, 2 insertions, 4 deletions
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 b28dad7a38ea..7926d03fd259 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java @@ -698,11 +698,9 @@ public class NotificationPanelView extends PanelView implements @Override protected int getMaxPanelHeight() { // TODO: Figure out transition for collapsing when QS is open, adjust height here. - int maxPanelHeight = super.getMaxPanelHeight(); int emptyBottomMargin = mNotificationStackScroller.getEmptyBottomMargin(); - emptyBottomMargin += mStackScrollerContainer.getHeight() - - mNotificationStackScroller.getHeight(); - int maxHeight = maxPanelHeight - emptyBottomMargin - mTopPaddingAdjustment; + int maxHeight = mNotificationStackScroller.getHeight() - emptyBottomMargin + - mTopPaddingAdjustment; maxHeight = Math.max(maxHeight, mStatusBarMinHeight); return maxHeight; } |