Merge "Allow to send user leave hint for task switch by touch" into tm-qpr-dev

This commit is contained in:
Riddle Hsu
2022-09-22 18:48:20 +00:00
committed by Android (Google) Code Review

View File

@@ -8514,7 +8514,10 @@ public class WindowManagerService extends IWindowManager.Stub
if (mFocusedInputTarget != t && mFocusedInputTarget != null) {
mFocusedInputTarget.handleTapOutsideFocusOutsideSelf();
}
// Trigger Activity#onUserLeaveHint() if the order change of task pauses any activities.
mAtmService.mTaskSupervisor.mUserLeaving = true;
t.handleTapOutsideFocusInsideSelf();
mAtmService.mTaskSupervisor.mUserLeaving = false;
}
@VisibleForTesting