summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-07-17 22:16:07 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-07-17 22:16:07 +0000
commitb6a35f112db72c102e31ca8a16cb7491f460cf0c (patch)
treeb5586f90db997c5ea8c41aaa2d2489755c2dffb3
parent12b7d2976fdaab817be8a54c266487823d5ee267 (diff)
parent1c1954f6207b3cd46f9c6525ebb996dfde563126 (diff)
Merge "Run IMMS#onUnlockUser() also for background users" into main
-rw-r--r--services/core/java/com/android/server/inputmethod/InputMethodManagerService.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java b/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java
index 96ca570fe984..cd61b61d1628 100644
--- a/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java
+++ b/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java
@@ -1114,11 +1114,12 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.
final InputMethodSettings newSettings = queryInputMethodServicesInternal(mContext,
userId, AdditionalSubtypeMapRepository.get(userId), DirectBootAwareness.AUTO);
InputMethodSettingsRepository.put(userId, newSettings);
- if (mCurrentUserId == userId) {
+ if (!mConcurrentMultiUserModeEnabled) {
// We need to rebuild IMEs.
postInputMethodSettingUpdatedLocked(false /* resetDefaultEnabledIme */, userId);
updateInputMethodsFromSettingsLocked(true /* enabledChanged */, userId);
- } else if (mConcurrentMultiUserModeEnabled) {
+ } else {
+ // TODO(b/352758479): Stop relying on initializeVisibleBackgroundUserLocked()
initializeVisibleBackgroundUserLocked(userId);
}
}