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

Commit b3548d0b authored by Mady Mellor's avatar Mady Mellor Committed by Automerger Merge Worker
Browse files

Merge "Allow multiple close transactions for task view" into udc-qpr-dev am: b47e5294

parents e9eb643e b47e5294
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -202,15 +202,10 @@ public class TaskViewTransitions implements Transitions.TransitionHandler {
        if (taskView == null) return null;
        // Opening types should all be initiated by shell
        if (!TransitionUtil.isClosingType(request.getType())) return null;
        PendingTransition pending = findPendingCloseTransition(taskView);
        if (pending == null) {
            pending = new PendingTransition(request.getType(), null, taskView, null /* cookie */);
        }
        if (pending.mClaimed != null) {
            throw new IllegalStateException("Task is closing in 2 collecting transitions?"
                    + " This state doesn't make sense");
        }
        PendingTransition pending = new PendingTransition(request.getType(), null,
                taskView, null /* cookie */);
        pending.mClaimed = transition;
        mPending.add(pending);
        return new WindowContainerTransaction();
    }