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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user