Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit defe5d3e authored by Riddle Hsu's avatar Riddle Hsu Committed by Automerger Merge Worker
Browse files

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

parents fd39c5f3 e0f07da1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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