summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Adam Bookatz <bookatz@google.com> 2024-10-30 17:01:24 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-10-30 17:01:24 +0000
commitc703aec7927158d3c730bb5ca69dfeb4a76df2a9 (patch)
treee27bc59cc2d757bcdff21062caf6ba1cd2186f84
parent0da1304db34cff1041602bef8572ec6491bf9113 (diff)
parentc8dd1b773e212f50bf0cc38ce5e194d8b0db3207 (diff)
Merge "AllowDelayedLocking as long as run-in-bg allowed" into main
-rw-r--r--services/core/java/com/android/server/am/UserController.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/am/UserController.java b/services/core/java/com/android/server/am/UserController.java
index 31ae966d7682..c31b9ef60bd2 100644
--- a/services/core/java/com/android/server/am/UserController.java
+++ b/services/core/java/com/android/server/am/UserController.java
@@ -2383,7 +2383,7 @@ class UserController implements Handler.Callback {
// If running in background is disabled or mStopUserOnSwitch mode, stop the user.
if (hasRestriction || isStopUserOnSwitchEnabled()) {
Slogf.i(TAG, "Stopping user %d and its profiles on user switch", oldUserId);
- stopUsersLU(oldUserId, /* allowDelayedLocking= */ false, null, null);
+ stopUsersLU(oldUserId, /* allowDelayedLocking= */ !hasRestriction, null, null);
return;
}
}