summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2014-04-11 21:23:30 +0200
committerSelim Cinek <cinek@google.com>2014-04-22 17:00:05 +0200
commit343e6e258ab6a9f647eabebaed05ce3acafd2ff1 (patch)
tree8c62bd61e7f78be608c4646f2fc1f88a598d139b /packages/SystemUI/src/com/android/systemui/ExpandHelper.java
parent6513f35cbb2b72d89e5fa72c6d6e7d95b899bd23 (diff)
downloadframeworks_base-343e6e258ab6a9f647eabebaed05ce3acafd2ff1.zip
frameworks_base-343e6e258ab6a9f647eabebaed05ce3acafd2ff1.tar.gz
frameworks_base-343e6e258ab6a9f647eabebaed05ce3acafd2ff1.tar.bz2
Avoiding intermediate states in NotificationStackScroller
The StackScrollAlgorithm was modified such that the notifications now don't layout anymore during scrolling and therefore intermediate states are avoided except for the first card. Also made the top stack a bit smaller and fixed a bug where the scrolling was not working on the very first try. Bug: 14080821 Bug: 14081652 Change-Id: I924a9f8532486856fc2ecd88f6c10d26023a5bc3
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/ExpandHelper.java')
-rw-r--r--packages/SystemUI/src/com/android/systemui/ExpandHelper.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/ExpandHelper.java b/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
index 1832d37..8dd3f8d 100644
--- a/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
+++ b/packages/SystemUI/src/com/android/systemui/ExpandHelper.java
@@ -195,6 +195,12 @@ public class ExpandHelper implements Gefingerpoken, OnClickListener {
mGravity = Gravity.TOP;
mScaleAnimation = ObjectAnimator.ofFloat(mScaler, "height", 0f);
mScaleAnimation.setDuration(EXPAND_DURATION);
+ mScaleAnimation.addListener(new AnimatorListenerAdapter() {
+ @Override
+ public void onAnimationEnd(Animator animation) {
+ mCallback.setUserLockedChild(mCurrView, false);
+ }
+ });
mPopLimit = mContext.getResources().getDimension(R.dimen.blinds_pop_threshold);
mPopDuration = mContext.getResources().getInteger(R.integer.blinds_pop_duration_ms);
mPullGestureMinXSpan = mContext.getResources().getDimension(R.dimen.pull_span_min);
@@ -549,8 +555,9 @@ public class ExpandHelper implements Gefingerpoken, OnClickListener {
mScaleAnimation.setFloatValues(targetHeight);
mScaleAnimation.setupStartValues();
mScaleAnimation.start();
+ } else {
+ mCallback.setUserLockedChild(mCurrView, false);
}
- mCallback.setUserLockedChild(mCurrView, false);
mExpanding = false;
mExpansionStyle = NONE;