Loading libs/WindowManager/Shell/src/com/android/wm/shell/taskview/TaskViewTaskController.java +6 −5 Original line number Diff line number Diff line Loading @@ -212,7 +212,10 @@ public class TaskViewTaskController implements ShellTaskOrganizer.TaskListener { private void resetTaskInfo() { mTaskInfo = null; mTaskToken = null; if (mTaskLeash != null) { mTaskLeash.release(); mTaskLeash = null; } mPendingInfo = null; mTaskNotFound = false; } Loading Loading @@ -261,7 +264,7 @@ public class TaskViewTaskController implements ShellTaskOrganizer.TaskListener { } mTaskInfo = taskInfo; mTaskToken = taskInfo.token; mTaskLeash = leash; mTaskLeash = new SurfaceControl(leash, "TaskController.onTaskAppeared"); if (mSurfaceCreated) { // Surface is ready, so just reparent the task to this surface control Loading Loading @@ -295,14 +298,12 @@ public class TaskViewTaskController implements ShellTaskOrganizer.TaskListener { // we know about -- so leave clean-up here even if shell transitions are enabled. if (mTaskToken == null || !mTaskToken.equals(taskInfo.token)) return; final SurfaceControl taskLeash = mTaskLeash; if (BubbleAnythingFlagHelper.enableCreateAnyBubble()) { handleAndNotifyTaskRemoval(taskInfo); } else { handleAndNotifyTaskRemoval(mTaskInfo); } mTransaction.reparent(taskLeash, null).apply(); resetTaskInfo(); } Loading Loading @@ -580,7 +581,7 @@ public class TaskViewTaskController implements ShellTaskOrganizer.TaskListener { mPendingInfo = null; mTaskInfo = taskInfo; mTaskToken = mTaskInfo.token; mTaskLeash = leash; mTaskLeash = new SurfaceControl(leash, "TaskController.prepareOpen"); if (!mSurfaceCreated) { return null; } Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/taskview/TaskViewTaskController.java +6 −5 Original line number Diff line number Diff line Loading @@ -212,7 +212,10 @@ public class TaskViewTaskController implements ShellTaskOrganizer.TaskListener { private void resetTaskInfo() { mTaskInfo = null; mTaskToken = null; if (mTaskLeash != null) { mTaskLeash.release(); mTaskLeash = null; } mPendingInfo = null; mTaskNotFound = false; } Loading Loading @@ -261,7 +264,7 @@ public class TaskViewTaskController implements ShellTaskOrganizer.TaskListener { } mTaskInfo = taskInfo; mTaskToken = taskInfo.token; mTaskLeash = leash; mTaskLeash = new SurfaceControl(leash, "TaskController.onTaskAppeared"); if (mSurfaceCreated) { // Surface is ready, so just reparent the task to this surface control Loading Loading @@ -295,14 +298,12 @@ public class TaskViewTaskController implements ShellTaskOrganizer.TaskListener { // we know about -- so leave clean-up here even if shell transitions are enabled. if (mTaskToken == null || !mTaskToken.equals(taskInfo.token)) return; final SurfaceControl taskLeash = mTaskLeash; if (BubbleAnythingFlagHelper.enableCreateAnyBubble()) { handleAndNotifyTaskRemoval(taskInfo); } else { handleAndNotifyTaskRemoval(mTaskInfo); } mTransaction.reparent(taskLeash, null).apply(); resetTaskInfo(); } Loading Loading @@ -580,7 +581,7 @@ public class TaskViewTaskController implements ShellTaskOrganizer.TaskListener { mPendingInfo = null; mTaskInfo = taskInfo; mTaskToken = mTaskInfo.token; mTaskLeash = leash; mTaskLeash = new SurfaceControl(leash, "TaskController.prepareOpen"); if (!mSurfaceCreated) { return null; } Loading