diff options
| author | 2024-04-15 17:54:28 +0000 | |
|---|---|---|
| committer | 2024-04-15 17:54:28 +0000 | |
| commit | 84daf1b777a0ad49a6c651c54fba1fd02c55050e (patch) | |
| tree | 4bc59ee9ed774c9b21274b6b2392eb54d178f98b | |
| parent | d6aa794e3266fa4d4d8e05e8f90208a20527d211 (diff) | |
| parent | 6171c37145448eab3db5e384beb3eb3cace6b3c6 (diff) | |
Merge "Remove unnecessary query in IMMS#switchUserOnHandlerLocked() (2nd try)" into main
| -rw-r--r-- | services/core/java/com/android/server/inputmethod/InputMethodManagerService.java | 4 |
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())) { |