Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59b5a356 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Epic performance fix during animation.

Change-Id: I0a5627543a048cc5348f482ea3407676c9b42126
parent 9cbadd3c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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,