OSDN Git Service

QS: Fix expanding on closing detail
authorJason Monk <jmonk@google.com>
Tue, 2 Aug 2016 17:49:43 +0000 (13:49 -0400)
committerJason Monk <jmonk@google.com>
Tue, 2 Aug 2016 17:49:43 +0000 (13:49 -0400)
Change-Id: I21f3baf76c956ee3679bd33cbde9859f181cc7eb
Fixes: 30215042

packages/SystemUI/src/com/android/systemui/qs/QSContainer.java

index d5fb8f2..ac90ce7 100644 (file)
@@ -146,7 +146,9 @@ public class QSContainer extends FrameLayout {
             return getHeight();
         }
         if (mQSDetail.isClosingDetail()) {
-            return mQSPanel.getGridHeight() + mHeader.getCollapsedHeight() + getPaddingBottom();
+            int panelHeight = ((LayoutParams) mQSPanel.getLayoutParams()).topMargin
+                    + mQSPanel.getMeasuredHeight();
+            return panelHeight + getPaddingBottom();
         } else {
             return getMeasuredHeight();
         }