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

Commit cd26e7fb authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Handle IMMS#onActionLocaleChanged() on the IO thread" into main

parents dd3fb523 2251fb40
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -707,6 +707,7 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.
     * <p>Note: For historical reasons, {@link Intent#ACTION_LOCALE_CHANGED} has been sent to all
     * the users.</p>
     */
    @WorkerThread
    void onActionLocaleChanged(@NonNull LocaleList prevLocales, @NonNull LocaleList newLocales) {
        if (DEBUG) {
            Slog.d(TAG, "onActionLocaleChanged prev=" + prevLocales + " new=" + newLocales);
@@ -1177,7 +1178,7 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.

            mHandler = Handler.createAsync(uiLooper, this);
            mIoHandler = ioHandler;
            SystemLocaleWrapper.onStart(context, this::onActionLocaleChanged, mHandler);
            SystemLocaleWrapper.onStart(context, this::onActionLocaleChanged, mIoHandler);
            mImeTrackerService = new ImeTrackerService(mHandler);
            mWindowManagerInternal = LocalServices.getService(WindowManagerInternal.class);
            mActivityManagerInternal = LocalServices.getService(ActivityManagerInternal.class);