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

Commit 248a7f89 authored by Tony Wickham's avatar Tony Wickham
Browse files

Only set live target if there is a target to set

Fixes: 166143722
Change-Id: I10c5bf384f6cee02cc55c035647911672f638e48
parent b6dc22c3
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2251,7 +2251,7 @@ public abstract class RecentsView<T extends StatefulActivity> extends PagedView
    public void setRecentsAnimationTargets(RecentsAnimationController recentsAnimationController,
    public void setRecentsAnimationTargets(RecentsAnimationController recentsAnimationController,
            RecentsAnimationTargets recentsAnimationTargets) {
            RecentsAnimationTargets recentsAnimationTargets) {
        mRecentsAnimationController = recentsAnimationController;
        mRecentsAnimationController = recentsAnimationController;
        if (recentsAnimationTargets != null) {
        if (recentsAnimationTargets != null && recentsAnimationTargets.apps.length > 0) {
            mLiveTileTaskViewSimulator.setPreview(
            mLiveTileTaskViewSimulator.setPreview(
                    recentsAnimationTargets.apps[recentsAnimationTargets.apps.length - 1]);
                    recentsAnimationTargets.apps[recentsAnimationTargets.apps.length - 1]);
            mLiveTileParams.setTargetSet(recentsAnimationTargets);
            mLiveTileParams.setTargetSet(recentsAnimationTargets);