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

Commit 7a72a4e9 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Refactor to inline the isNewInTaskView argument." into main

parents 388691dd bd89c480
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -835,18 +835,16 @@ public class TaskViewTransitions implements Transitions.TransitionHandler, TaskV
                            startTransaction, finishTransaction, taskInfo, leash, wct);
                    break;
                case TRANSIT_TO_FRONT:
                    boolean isNewInTaskView = false;
                    if (wct == null) wct = new WindowContainerTransaction();
                    if (infoTv == null && pending != null && isTaskToTaskView(task, pending)) {
                        // The task is being moved into taskView, so it is still "new" from
                        // TaskView's perspective (e.g. task being moved into a bubble)
                        stillNeedsMatchingLaunch = false;
                        isNewInTaskView = true;
                        prepareOpenAnimation(pending.mTaskView, isNewInTaskView, startTransaction,
                                finishTransaction, taskInfo, leash, wct);
                        prepareOpenAnimation(pending.mTaskView, true /* isNewInTaskView */,
                                startTransaction, finishTransaction, taskInfo, leash, wct);
                    } else {
                        prepareOpenAnimation(infoTv, isNewInTaskView, startTransaction,
                                finishTransaction, taskInfo, leash, wct);
                        prepareOpenAnimation(infoTv, false /* isNewInTaskView */,
                                startTransaction, finishTransaction, taskInfo, leash, wct);
                    }
                    break;
                case TRANSIT_CHANGE: