diff options
| -rw-r--r-- | services/core/java/com/android/server/wm/WindowManagerService.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/wm/WindowManagerService.java b/services/core/java/com/android/server/wm/WindowManagerService.java index 2ade924bf77d..f6d3881e9485 100644 --- a/services/core/java/com/android/server/wm/WindowManagerService.java +++ b/services/core/java/com/android/server/wm/WindowManagerService.java @@ -3850,9 +3850,9 @@ public class WindowManagerService extends IWindowManager.Stub return; } - // If this isn't coming from the current user, ignore it. - if (Binder.getCallingUserHandle().getIdentifier() != mCurrentUserId) { - Log.d(TAG_WM, "non-current user, ignore disableKeyguard"); + // If this isn't coming from the current profiles, ignore it. + if (!isCurrentProfileLocked(UserHandle.getCallingUserId())) { + Log.d(TAG_WM, "non-current profiles, ignore disableKeyguard"); return; } |