commit | 4fe3e475eaeb88ec8f0bb580ee765ceefe13bcbc | [log] [tgz] |
---|---|---|
author | Selim Cinek <cinek@google.com> | Thu Jul 03 16:32:54 2014 +0200 |
committer | Selim Cinek <cinek@google.com> | Fri Jul 04 10:28:34 2014 +0000 |
tree | f486306a015dccee952b18b242d02ba9dc496f0f | |
parent | 96aacd2a2c04f5feeb58e025cacc3c83fc902339 [diff] [blame] |
Fixed bugs in the stack scroller - A hole could occur when collapsing and expanding in the same touch - The second card was not correctly resized if the stack was scrolled Bug: 15996450 Change-Id: Ie779ed5d63b8c55d490c459955bafbc583bfce97
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java index 4086022..641dea3 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java
@@ -1800,14 +1800,14 @@ public void onExpansionStopped() { mIsExpansionChanging = false; mStackScrollAlgorithm.onExpansionStopped(); + if (!mIsExpanded) { + mOwnScrollY = 0; + } } private void setIsExpanded(boolean isExpanded) { mIsExpanded = isExpanded; mStackScrollAlgorithm.setIsExpanded(isExpanded); - if (!isExpanded) { - mOwnScrollY = 0; - } } @Override