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

Commit 38c11064 authored by Chavi Weingarten's avatar Chavi Weingarten Committed by Gerrit Code Review
Browse files

Merge "Clear calling identity when requesting syncInputTransaction"

parents 5691fb68 f87ea83f
Loading
Loading
Loading
Loading
+10 −5
Original line number Diff line number Diff line
@@ -7717,6 +7717,8 @@ public class WindowManagerService extends IWindowManager.Stub

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

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

    private void waitForAnimationsToComplete() {