Merge "Make sure to send HOVER_EXIT when starting touch exploration if we haven't sent it already." into main am: 6c737e8ca0 am: 9e901f2cdf am: a9dafc3734

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2677516

Change-Id: I8f6b59a90f72ef2dbba636fd15b86492ad1388ef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Ameer Armaly
2023-07-28 19:50:27 +00:00
committed by Automerger Merge Worker

View File

@@ -1344,6 +1344,8 @@ public class TouchExplorer extends BaseEventStreamTransformation
Slog.e(LOG_TAG, "Unable to find a valid pointer for touch exploration.");
return;
}
// Send hover exit if we haven't closed a previous touch exploration event stream.
sendHoverExitAndTouchExplorationGestureEndIfNeeded(pointerId);
final int pointerIdBits = (1 << pointerId);
final int policyFlags = mState.getLastReceivedPolicyFlags();
mSendHoverEnterAndMoveDelayed.setPointerIdBits(pointerIdBits);