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

Commit 6ebf3d44 authored by Tony Wickham's avatar Tony Wickham
Browse files

Fix regression where recents button had no animation

Change-Id: I76102b4a9f3581b71285bfa9aa0c9dc29dd3165d
parent c7303048
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -117,6 +117,7 @@ final class AppToOverviewAnimationProvider<T extends BaseDraggingActivity> exten
        });
        if (mActivity == null) {
            Log.e(TAG, "Animation created, before activity");
            anim.play(ValueAnimator.ofInt(0, 1).setDuration(RECENTS_LAUNCH_DURATION));
            return anim;
        }

@@ -135,6 +136,7 @@ final class AppToOverviewAnimationProvider<T extends BaseDraggingActivity> exten
        RemoteAnimationTargetCompat runningTaskTarget = targets.findTask(mTargetTaskId);
        if (runningTaskTarget == null) {
            Log.e(TAG, "No closing app");
            anim.play(ValueAnimator.ofInt(0, 1).setDuration(RECENTS_LAUNCH_DURATION));
            return anim;
        }

@@ -181,6 +183,7 @@ final class AppToOverviewAnimationProvider<T extends BaseDraggingActivity> exten
                transaction.apply();
            });
        }
        anim.play(valueAnimator);
        return anim;
    }