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

Commit 5580144d authored by Uwais Ashraf's avatar Uwais Ashraf
Browse files

Animate RecentsView when rotating in fake orientations

Test: Manual - animations
Bug: 336704871
Flag: EXEMPT bugfix
Change-Id: I80629128a0730ca85d0313d15af806ddf840e82b
parent 6b65956a
Loading
Loading
Loading
Loading
+2 −10
Original line number Diff line number Diff line
@@ -2675,17 +2675,9 @@ public abstract class RecentsView<CONTAINER_TYPE extends Context & RecentsViewCo
        pa.start();
    }

    public AnimatorSet setRecentsChangedOrientation(boolean fadeInChildren) {
        getRunningTaskIndex();
        int runningIndex = getCurrentPage();
    public AnimatorSet setRecentsChangedOrientation(boolean fadeOut) {
        AnimatorSet as = new AnimatorSet();
        for (int i = 0; i < getTaskViewCount(); i++) {
            View taskView = requireTaskViewAt(i);
            if (runningIndex == i && taskView.getAlpha() != 0) {
                continue;
            }
            as.play(ObjectAnimator.ofFloat(taskView, View.ALPHA, fadeInChildren ? 0 : 1));
        }
        as.play(ObjectAnimator.ofFloat(this, View.ALPHA, fadeOut ? 0 : 1));
        return as;
    }