Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84daf1b7 authored by Antonio Kantek's avatar Antonio Kantek Committed by Android (Google) Code Review
Browse files

Merge "Remove unnecessary query in IMMS#switchUserOnHandlerLocked() (2nd try)" into main

parents d6aa794e 6171c371
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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())) {