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

Commit c923ee1a authored by Winson Chung's avatar Winson Chung Committed by Presubmit Automerger Backend
Browse files

[automerge] Skip animation if there are no targets 2p: 67512023

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16683595

Bug: 210118444
Change-Id: I0d551c933b0aaf6c12fcd96cd50fb0650467ca3e
parents 9815dd9c 67512023
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -4139,8 +4139,10 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
            anim.play(ObjectAnimator.ofFloat(getPageAt(centerTaskIndex),
                    mOrientationHandler.getPrimaryViewTranslate(), primaryTranslation));
            int runningTaskIndex = recentsView.getRunningTaskIndex();
            if (ENABLE_QUICKSTEP_LIVE_TILE.get() && runningTaskIndex != -1
                    && runningTaskIndex != taskIndex) {
            if (ENABLE_QUICKSTEP_LIVE_TILE.get()
                    && runningTaskIndex != -1
                    && runningTaskIndex != taskIndex
                    && recentsView.getRemoteTargetHandles() != null) {
                for (RemoteTargetHandle remoteHandle : recentsView.getRemoteTargetHandles()) {
                    anim.play(ObjectAnimator.ofFloat(
                            remoteHandle.getTaskViewSimulator().taskPrimaryTranslation,