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

Commit 7168891e authored by András Kurucz's avatar András Kurucz
Browse files

Remove unused AnimationFilter.animateYViews

This property is not used anymore, it just causes confusion while
debugging SSA animations.

Bug: 325936094
Test: atest SystemUITests
Flag: N/A
Change-Id: I5b37388b0203ac80cc42cb2aa037ed0496702a5e
parent 1e804e54
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