Merge "Address Pointer Capture crash during rapid toggles" into tm-dev am: 0f24a7c37b am: 738c775a86

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/18142163

Change-Id: I037623a93eaaffd47724c31ac1ac7449c2717d9d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>