Merge "Prevent having empty task added back into TDA" into sc-dev am: f4690485e1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15298116 Change-Id: I058b42891266a7f8bbe526a1adc5517706823dc1
This commit is contained in:
@@ -5666,7 +5666,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