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

Commit aedb707a authored by Tony Mak's avatar Tony Mak Committed by Android (Google) Code Review
Browse files

Merge "Allow current profiles to disable keyguard"

parents 55ab172a 555a59ad
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -3850,9 +3850,9 @@ public class WindowManagerService extends IWindowManager.Stub
            return;
            return;
        }
        }


        // If this isn't coming from the current user, ignore it.
        // If this isn't coming from the current profiles, ignore it.
        if (Binder.getCallingUserHandle().getIdentifier() != mCurrentUserId) {
        if (!isCurrentProfileLocked(UserHandle.getCallingUserId())) {
            Log.d(TAG_WM, "non-current user, ignore disableKeyguard");
            Log.d(TAG_WM, "non-current profiles, ignore disableKeyguard");
            return;
            return;
        }
        }