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

Commit 24364451 authored by Satoshi Kataoka's avatar Satoshi Kataoka Committed by Android (Google) Code Review
Browse files

Merge "Add a comment for secondary user handling in IMMS"

parents 83178a67 7c4a2a12
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -785,6 +785,11 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
        mFileManager = new InputMethodFileManager(mMethodMap, newUserId);
        final String defaultImiId = mSettings.getSelectedInputMethod();
        final boolean needsToResetDefaultIme = TextUtils.isEmpty(defaultImiId);
        // For secondary users, the list of enabled IMEs may not have been updated since the
        // callbacks to PackageMonitor are ignored for the secondary user. Here, defaultImiId may
        // not be empty even if the IME has been uninstalled by the primary user.
        // Even in such cases, IMMS works fine because it will find the most applicable
        // IME for that user.
        if (DEBUG) {
            Slog.d(TAG, "Switch user: " + newUserId + " current ime = " + defaultImiId);
        }