Merge "Change deleteRootTasks so that it returns false instead of exception" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
4423456dd9
@@ -596,9 +596,7 @@ class TaskOrganizerController extends ITaskOrganizerController.Stub {
|
|||||||
try {
|
try {
|
||||||
synchronized (mGlobalLock) {
|
synchronized (mGlobalLock) {
|
||||||
final WindowContainer wc = WindowContainer.fromBinder(token.asBinder());
|
final WindowContainer wc = WindowContainer.fromBinder(token.asBinder());
|
||||||
if (wc == null) {
|
if (wc == null) return false;
|
||||||
throw new IllegalArgumentException("Can't resolve window from token");
|
|
||||||
}
|
|
||||||
final Task task = wc.asTask();
|
final Task task = wc.asTask();
|
||||||
if (task == null) return false;
|
if (task == null) return false;
|
||||||
if (!task.mCreatedByOrganizer) {
|
if (!task.mCreatedByOrganizer) {
|
||||||
|
|||||||
Reference in New Issue
Block a user