Skip to content
Snippets Groups Projects
Commit 59b5a356 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Epic performance fix during animation.

Change-Id: I0a5627543a048cc5348f482ea3407676c9b42126
parent 9cbadd3c
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment