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

Commit c59dc3b6 authored by Chavi Weingarten's avatar Chavi Weingarten Committed by Automerger Merge Worker
Browse files

Merge "Clear calling identity when requesting syncInputTransaction" am: 38c11064

Change-Id: I3225b9ab62520ced5cd74121563afd83e26f0b47
parents 3d5ec16e 38c11064
Loading
Loading
Loading
Loading
+10 −5
Original line number Diff line number Diff line
@@ -7723,6 +7723,8 @@ public class WindowManagerService extends IWindowManager.Stub

    @Override
    public void syncInputTransactions() {
        long token = Binder.clearCallingIdentity();
        try {
            waitForAnimationsToComplete();

            synchronized (mGlobalLock) {
@@ -7731,6 +7733,9 @@ public class WindowManagerService extends IWindowManager.Stub
                    displayContent.getInputMonitor().updateInputWindowsImmediately());
            }
            new SurfaceControl.Transaction().syncInputWindows().apply(true);
        } finally {
            Binder.restoreCallingIdentity(token);
        }
    }

    private void waitForAnimationsToComplete() {