Loading libs/WindowManager/Shell/src/com/android/wm/shell/taskview/TaskViewTaskController.java +18 −11 Original line number Diff line number Diff line Loading @@ -94,9 +94,11 @@ public class TaskViewTaskController implements ShellTaskOrganizer.TaskListener { mShellExecutor = organizer.getExecutor(); mSyncQueue = syncQueue; mTaskViewTransitions = taskViewTransitions; mShellExecutor.execute(() -> { if (mTaskViewTransitions != null) { mTaskViewTransitions.addTaskView(this); } }); mGuard.open("release"); } Loading Loading @@ -225,10 +227,10 @@ public class TaskViewTaskController implements ShellTaskOrganizer.TaskListener { } private void performRelease() { mShellExecutor.execute(() -> { if (mTaskViewTransitions != null) { mTaskViewTransitions.removeTaskView(this); } mShellExecutor.execute(() -> { mTaskOrganizer.removeListener(this); resetTaskInfo(); }); Loading Loading @@ -410,9 +412,12 @@ public class TaskViewTaskController implements ShellTaskOrganizer.TaskListener { if (mTaskToken == null) { return; } // Sync Transactions can't operate simultaneously with shell transition collection. if (isUsingShellTransitions()) { mShellExecutor.execute(() -> { // Sync Transactions can't operate simultaneously with shell transition collection. mTaskViewTransitions.setTaskBounds(this, boundsOnScreen); }); return; } Loading @@ -430,9 +435,11 @@ public class TaskViewTaskController implements ShellTaskOrganizer.TaskListener { Slog.w(TAG, "Trying to remove a task that was never added? (no taskToken)"); return; } mShellExecutor.execute(() -> { WindowContainerTransaction wct = new WindowContainerTransaction(); wct.removeTask(mTaskToken); mTaskViewTransitions.closeTaskView(wct, this); }); } /** Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/taskview/TaskViewTaskController.java +18 −11 Original line number Diff line number Diff line Loading @@ -94,9 +94,11 @@ public class TaskViewTaskController implements ShellTaskOrganizer.TaskListener { mShellExecutor = organizer.getExecutor(); mSyncQueue = syncQueue; mTaskViewTransitions = taskViewTransitions; mShellExecutor.execute(() -> { if (mTaskViewTransitions != null) { mTaskViewTransitions.addTaskView(this); } }); mGuard.open("release"); } Loading Loading @@ -225,10 +227,10 @@ public class TaskViewTaskController implements ShellTaskOrganizer.TaskListener { } private void performRelease() { mShellExecutor.execute(() -> { if (mTaskViewTransitions != null) { mTaskViewTransitions.removeTaskView(this); } mShellExecutor.execute(() -> { mTaskOrganizer.removeListener(this); resetTaskInfo(); }); Loading Loading @@ -410,9 +412,12 @@ public class TaskViewTaskController implements ShellTaskOrganizer.TaskListener { if (mTaskToken == null) { return; } // Sync Transactions can't operate simultaneously with shell transition collection. if (isUsingShellTransitions()) { mShellExecutor.execute(() -> { // Sync Transactions can't operate simultaneously with shell transition collection. mTaskViewTransitions.setTaskBounds(this, boundsOnScreen); }); return; } Loading @@ -430,9 +435,11 @@ public class TaskViewTaskController implements ShellTaskOrganizer.TaskListener { Slog.w(TAG, "Trying to remove a task that was never added? (no taskToken)"); return; } mShellExecutor.execute(() -> { WindowContainerTransaction wct = new WindowContainerTransaction(); wct.removeTask(mTaskToken); mTaskViewTransitions.closeTaskView(wct, this); }); } /** Loading