Merge "Clear calling identity when requesting syncInputTransaction"
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user