Merge "Prevent having empty task added back into TDA" into sc-dev
This commit is contained in:
@@ -5604,7 +5604,8 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
|
||||
@Override
|
||||
public ActivityTokens getTopActivityForTask(int taskId) {
|
||||
synchronized (mGlobalLock) {
|
||||
final Task task = mRootWindowContainer.anyTaskForId(taskId);
|
||||
final Task task = mRootWindowContainer.anyTaskForId(taskId,
|
||||
MATCH_ATTACHED_TASK_ONLY);
|
||||
if (task == null) {
|
||||
Slog.w(TAG, "getApplicationThreadForTopActivity failed:"
|
||||
+ " Requested task not found");
|
||||
|
||||
Reference in New Issue
Block a user