summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2014-05-02 16:46:02 +0200
committerJorim Jaggi <jjaggi@google.com>2014-05-02 16:46:02 +0200
commit59b5a356b828fe60ea2874b0680a1bf7c84809a1 (patch)
tree8cb9d99a332fa8d8852eb730bf89e818507dedf3 /packages/SystemUI/src/com
parent9cbadd3c08a7d7dd3412743dd04aecb16c5a1595 (diff)
downloadframeworks_base-59b5a356b828fe60ea2874b0680a1bf7c84809a1.zip
frameworks_base-59b5a356b828fe60ea2874b0680a1bf7c84809a1.tar.gz
frameworks_base-59b5a356b828fe60ea2874b0680a1bf7c84809a1.tar.bz2
Epic performance fix during animation.
Change-Id: I0a5627543a048cc5348f482ea3407676c9b42126
Diffstat (limited to 'packages/SystemUI/src/com')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/stack/StackStateAnimator.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackStateAnimator.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackStateAnimator.java
index 620af0c..4dce288 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackStateAnimator.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackStateAnimator.java
@@ -95,7 +95,6 @@ public class StackStateAnimator {
private void startPropertyAnimation(long newDuration, final boolean hasFinishAction,
final ExpandableView child, StackScrollState.ViewState viewState, final float alpha) {
child.animate().setInterpolator(mFastOutSlowInInterpolator)
- .alpha(alpha)
.translationY(viewState.yTranslation)
.translationZ(viewState.zTranslation)
.setDuration(newDuration)
@@ -112,6 +111,9 @@ public class StackStateAnimator {
}
}
});
+ if (alpha != child.getAlpha()) {
+ child.animate().withLayer().alpha(alpha);
+ }
}
private void startHeightAnimation(long newDuration, final ExpandableView child,