Merge "Allow to send user leave hint for task switch by touch" into tm-qpr-dev am: e0f07da153
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20008464 Change-Id: Id77a9fffb1ac33054e6d4116b0164431f0527d77 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -8514,7 +8514,10 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
if (mFocusedInputTarget != t && mFocusedInputTarget != null) {
|
if (mFocusedInputTarget != t && mFocusedInputTarget != null) {
|
||||||
mFocusedInputTarget.handleTapOutsideFocusOutsideSelf();
|
mFocusedInputTarget.handleTapOutsideFocusOutsideSelf();
|
||||||
}
|
}
|
||||||
|
// Trigger Activity#onUserLeaveHint() if the order change of task pauses any activities.
|
||||||
|
mAtmService.mTaskSupervisor.mUserLeaving = true;
|
||||||
t.handleTapOutsideFocusInsideSelf();
|
t.handleTapOutsideFocusInsideSelf();
|
||||||
|
mAtmService.mTaskSupervisor.mUserLeaving = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
|
|||||||
Reference in New Issue
Block a user