summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Selim Cinek <cinek@google.com> 2014-06-04 21:49:02 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2014-06-04 21:49:04 +0000
commit45474056ea9e3618d52869c5182a30e2300cd5c3 (patch)
tree846cda9d9b3cf6cf15f3d17213cc3ac8e96592e0
parent4c6debb7678794401e9732cad4475e28ab91a496 (diff)
parentaa402d513a124f80b7bf3528ae8c7017e7876ad5 (diff)
Merge "Simplified maxPanelHeight logic." into lmp-preview-dev
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java6
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;
}