Merge "ActivityTaskManagerService: clear previous if it becomes topApp"

This commit is contained in:
Tim Murray
2022-12-17 21:50:08 +00:00
committed by Android (Google) Code Review

View File

@@ -4841,6 +4841,7 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
// If there is no resumed activity, it will choose the pausing or focused activity.
: mRootWindowContainer.getTopResumedActivity();
mTopApp = top != null ? top.app : null;
if (mTopApp == mPreviousProcess) mPreviousProcess = null;
}
/**