Merge "Fix flaky test WindowInputTestsi#testTrustedOverlapWindow" into sc-v2-dev am: 651343388f am: cfa5c420e3

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

Change-Id: I59a4af69db4c0b9bf0e906cb56f5304dc2af37ea
This commit is contained in:
TreeHugger Robot
2022-01-07 15:15:13 +00:00
committed by Automerger Merge Worker

View File

@@ -66,7 +66,12 @@ public class BatchedInputEventReceiver extends InputEventReceiver {
* @hide
*/
public void setBatchingEnabled(boolean batchingEnabled) {
if (mBatchingEnabled == batchingEnabled) {
return;
}
mBatchingEnabled = batchingEnabled;
mHandler.removeCallbacks(mConsumeBatchedInputEvents);
if (!batchingEnabled) {
unscheduleBatchedInput();
mHandler.post(mConsumeBatchedInputEvents);