summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Antonio Kantek <kanant@google.com> 2024-04-15 17:54:28 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-04-15 17:54:28 +0000
commit84daf1b777a0ad49a6c651c54fba1fd02c55050e (patch)
tree4bc59ee9ed774c9b21274b6b2392eb54d178f98b
parentd6aa794e3266fa4d4d8e05e8f90208a20527d211 (diff)
parent6171c37145448eab3db5e384beb3eb3cace6b3c6 (diff)
Merge "Remove unnecessary query in IMMS#switchUserOnHandlerLocked() (2nd try)" into main
-rw-r--r--services/core/java/com/android/server/inputmethod/InputMethodManagerService.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java b/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java
index 333c9b58214f..96f525a55660 100644
--- a/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java
+++ b/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java
@@ -1539,9 +1539,7 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.
// and user switch would not happen at that time.
resetCurrentMethodAndClientLocked(UnbindReason.SWITCH_USER);
- final InputMethodSettings newSettings = queryInputMethodServicesInternal(mContext,
- newUserId, AdditionalSubtypeMapRepository.get(newUserId), DirectBootAwareness.AUTO);
- InputMethodSettingsRepository.put(newUserId, newSettings);
+ final InputMethodSettings newSettings = InputMethodSettingsRepository.get(newUserId);
mSettings = newSettings;
postInputMethodSettingUpdatedLocked(initialUserSwitch /* resetDefaultEnabledIme */);
if (TextUtils.isEmpty(mSettings.getSelectedInputMethod())) {