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

Commit 08e705aa authored by András Kurucz's avatar András Kurucz Committed by Android (Google) Code Review
Browse files

Merge "Remove unused AnimationFilter.animateYViews" into main

parents 4c7cac62 7168891e
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -31,7 +31,6 @@ public class AnimationFilter {
    boolean animateAlpha;
    boolean animateX;
    public boolean animateY;
    ArraySet<View> animateYViews = new ArraySet<>();
    boolean animateZ;
    boolean animateHeight;
    boolean animateTopInset;
@@ -87,13 +86,8 @@ public class AnimationFilter {
        return this;
    }

    public AnimationFilter animateY(View view) {
        animateYViews.add(view);
        return this;
    }

    public boolean shouldAnimateY(View view) {
        return animateY || animateYViews.contains(view);
        return animateY;
    }

    /**
@@ -118,7 +112,6 @@ public class AnimationFilter {
        animateAlpha |= filter.animateAlpha;
        animateX |= filter.animateX;
        animateY |= filter.animateY;
        animateYViews.addAll(filter.animateYViews);
        animateZ |= filter.animateZ;
        animateHeight |= filter.animateHeight;
        animateTopInset |= filter.animateTopInset;
@@ -131,7 +124,6 @@ public class AnimationFilter {
        animateAlpha = false;
        animateX = false;
        animateY = false;
        animateYViews.clear();
        animateZ = false;
        animateHeight = false;
        animateTopInset = false;
+1 −1
Original line number Diff line number Diff line
@@ -657,7 +657,7 @@ public class ViewState implements Dumpable {
        }
        ObjectAnimator previousAnimator = getChildTag(child, TAG_ANIMATOR_TRANSLATION_Y);
        AnimationFilter filter = properties.getAnimationFilter();
        if (!filter.shouldAnimateY(child)) {
        if (!filter.animateY) {
            // just a local update was performed
            if (previousAnimator != null) {
                // we need to increase all animation keyframes of the previous animator by the