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

Commit 413e92ac authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix flaky test WindowInputTestsi#testTrustedOverlapWindow" into...

Merge "Fix flaky test WindowInputTestsi#testTrustedOverlapWindow" into sc-v2-dev am: 65134338 am: cfa5c420

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

Change-Id: I59a4af69db4c0b9bf0e906cb56f5304dc2af37ea
parents 0f341380 cfa5c420
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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);