diff options
author | John Spurlock <jspurlock@google.com> | 2014-05-30 16:20:05 -0400 |
---|---|---|
committer | John Spurlock <jspurlock@google.com> | 2014-05-30 16:20:05 -0400 |
commit | bc3a5e946989701f05ea28d596f8710e011887be (patch) | |
tree | 3a944dcd61bd492e7e75b0251affd374f1a8d8b1 /packages | |
parent | a24114e7b1418ec911b6328656f36f9598482d87 (diff) | |
download | frameworks_base-bc3a5e946989701f05ea28d596f8710e011887be.zip frameworks_base-bc3a5e946989701f05ea28d596f8710e011887be.tar.gz frameworks_base-bc3a5e946989701f05ea28d596f8710e011887be.tar.bz2 |
QuickSettings: Fix flash when expanding panel.
Bug:15186962
Change-Id: Ib42776989d687f8873f7bd3c2567c31a23e0490f
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java | 6 |
1 files changed, 5 insertions, 1 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 2f36e0e..c8f185c 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java @@ -72,6 +72,7 @@ public class NotificationPanelView extends PanelView implements */ private boolean mIntercepting; private boolean mQsExpanded; + private boolean mQsFullyExpanded; private boolean mKeyguardShowing; private float mInitialHeightOnTouch; private float mInitialTouchX; @@ -167,7 +168,9 @@ public class NotificationPanelView extends PanelView implements mQsMinExpansionHeight = mHeader.getCollapsedHeight() + mQsPeekHeight; mQsMaxExpansionHeight = mHeader.getExpandedHeight() + mQsContainer.getHeight(); if (mQsExpanded) { - setQsStackScrollerPadding(mQsMaxExpansionHeight); + if (mQsFullyExpanded) { + setQsStackScrollerPadding(mQsMaxExpansionHeight); + } } else { setQsExpansion(mQsMinExpansionHeight); positionClockAndNotifications(); @@ -524,6 +527,7 @@ public class NotificationPanelView extends PanelView implements private void setQsExpansion(float height) { height = Math.min(Math.max(height, mQsMinExpansionHeight), mQsMaxExpansionHeight); + mQsFullyExpanded = height == mQsMaxExpansionHeight; if (height > mQsMinExpansionHeight && !mQsExpanded) { setQsExpanded(true); } else if (height <= mQsMinExpansionHeight && mQsExpanded) { |