From 83e431fc51fc070901bee85970a5c4bf51f853ac Mon Sep 17 00:00:00 2001 From: Jason Monk Date: Fri, 19 Feb 2016 19:32:13 -0500 Subject: [PATCH] Fix QS Open on single finger scroll The QSPanel had 0 height when shade was collapsed which messed up the immediate expand logic. Bug: 27197894 Change-Id: I623eb5d3b945a83b3410fa5dc52c4f96dd6700cb --- .../SystemUI/src/com/android/systemui/qs/QSContainer.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSContainer.java b/packages/SystemUI/src/com/android/systemui/qs/QSContainer.java index 34dfd6c55abd7..58c3b7eb44afe 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QSContainer.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QSContainer.java @@ -63,6 +63,14 @@ public class QSContainer extends FrameLayout { mHeader = (BaseStatusBarHeader) findViewById(R.id.header); } + @Override + protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { + // Since we control our own bottom, be whatever size we want. + // Otherwise the QSPanel ends up with 0 height when the window is only the + // size of the status bar. + super.onMeasure(widthMeasureSpec, MeasureSpec.UNSPECIFIED); + } + @Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom);