diff options
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/qs/QSViewPager.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/QSViewPager.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSViewPager.java b/packages/SystemUI/src/com/android/systemui/qs/QSViewPager.java index 94c7c62..01c48b1 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QSViewPager.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QSViewPager.java @@ -16,7 +16,6 @@ public class QSViewPager extends ViewPager { protected static final float SCROLL_PERCENT = .10f; private boolean mPagingEnabled; QSDragPanel mDragPanel; - private int mLastHeight = 0; public QSViewPager(Context context) { super(context); @@ -45,14 +44,13 @@ public class QSViewPager extends ViewPager { @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { - int height = mLastHeight; + int height = 0; for (int i = 0; i < getChildCount(); i++) { View child = getChildAt(i); child.measure(widthMeasureSpec, MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED)); int h = child.getMeasuredHeight(); if (h > height) height = h; } - mLastHeight = height; heightMeasureSpec = MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY); super.onMeasure(widthMeasureSpec, heightMeasureSpec); } |