Merge "Clear calling identity when requesting syncInputTransaction"

This commit is contained in:
Chavi Weingarten
2020-05-21 22:20:51 +00:00
committed by Gerrit Code Review

View File

@@ -7717,6 +7717,8 @@ public class WindowManagerService extends IWindowManager.Stub
@Override @Override
public void syncInputTransactions() { public void syncInputTransactions() {
long token = Binder.clearCallingIdentity();
try {
waitForAnimationsToComplete(); waitForAnimationsToComplete();
synchronized (mGlobalLock) { synchronized (mGlobalLock) {
@@ -7725,6 +7727,9 @@ public class WindowManagerService extends IWindowManager.Stub
displayContent.getInputMonitor().updateInputWindowsImmediately()); displayContent.getInputMonitor().updateInputWindowsImmediately());
} }
new SurfaceControl.Transaction().syncInputWindows().apply(true); new SurfaceControl.Transaction().syncInputWindows().apply(true);
} finally {
Binder.restoreCallingIdentity(token);
}
} }
private void waitForAnimationsToComplete() { private void waitForAnimationsToComplete() {