Merge "Check is leaf task before remove its child containers" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3f5ba37675
@@ -738,8 +738,9 @@ class Task extends TaskFragment {
|
|||||||
"removeTask:" + reason + " deferring removing taskId=" + mTaskId);
|
"removeTask:" + reason + " deferring removing taskId=" + mTaskId);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
final boolean isLeafTask = isLeafTask();
|
||||||
removeImmediately(reason);
|
removeImmediately(reason);
|
||||||
if (isLeafTask()) {
|
if (isLeafTask) {
|
||||||
mAtmService.getTaskChangeNotificationController().notifyTaskRemoved(mTaskId);
|
mAtmService.getTaskChangeNotificationController().notifyTaskRemoved(mTaskId);
|
||||||
|
|
||||||
final TaskDisplayArea taskDisplayArea = getDisplayArea();
|
final TaskDisplayArea taskDisplayArea = getDisplayArea();
|
||||||
|
|||||||
Reference in New Issue
Block a user