Merge "Clear calling identity when requesting syncInputTransaction" into rvc-dev am: 5ffe066041

Change-Id: I04f61cf1356fb9a73d8020eaa8868f3dcfa082ed
This commit is contained in:
Chavi Weingarten
2020-05-21 00:04:48 +00:00
committed by Automerger Merge Worker

View File

@@ -7922,6 +7922,8 @@ public class WindowManagerService extends IWindowManager.Stub
@Override @Override
public void syncInputTransactions() { public void syncInputTransactions() {
long token = Binder.clearCallingIdentity();
try {
waitForAnimationsToComplete(); waitForAnimationsToComplete();
// Collect all input transactions from all displays to make sure we could sync all input // Collect all input transactions from all displays to make sure we could sync all input
@@ -7934,6 +7936,9 @@ public class WindowManagerService extends IWindowManager.Stub
} }
t.syncInputWindows().apply(); t.syncInputWindows().apply();
} finally {
Binder.restoreCallingIdentity(token);
}
} }
/** /**