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

Commit 67863693 authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

Merge "Clear calling identity for trusted change from keyguard" into main

parents 1e137e71 1185b830
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -3114,11 +3114,16 @@ public class WindowManagerService extends IWindowManager.Stub

    @Override
    public void notifyKeyguardTrustedChanged() {
        final long origId = Binder.clearCallingIdentity();
        try {
            synchronized (mGlobalLock) {
                if (mAtmService.mKeyguardController.isKeyguardShowing(DEFAULT_DISPLAY)) {
                    mRoot.ensureActivitiesVisible(null, 0, false /* preserveWindows */);
                }
            }
        } finally {
            Binder.restoreCallingIdentity(origId);
        }
    }

    @Override