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

Commit 9d25c97e authored by Selim Cinek's avatar Selim Cinek Committed by Android (Google) Code Review
Browse files

Merge "Fixed a bug where the drag down animation was behaving wrong" into lmp-dev

parents 88619b12 cfc91cf2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -166,7 +166,7 @@ public class StackStateAnimator {
        boolean hasDelays = mAnimationFilter.hasDelays;
        boolean isDelayRelevant = yTranslationChanging || zTranslationChanging || scaleChanging ||
                alphaChanging || heightChanging || topInsetChanging;
        boolean noAnimation = wasAdded && !mAnimationFilter.hasGoToFullShadeEvent;
        boolean noAnimation = wasAdded;
        long delay = 0;
        long duration = mCurrentLength;
        if (hasDelays && isDelayRelevant || wasAdded) {
@@ -184,7 +184,7 @@ public class StackStateAnimator {

        // start translationY animation
        if (yTranslationChanging) {
            if (noAnimation) {
            if (noAnimation && !mAnimationFilter.hasGoToFullShadeEvent) {
                child.setTranslationY(viewState.yTranslation);
            } else {
                startYTranslationAnimation(child, viewState, duration, delay);