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

Commit a8a82ee2 authored by Fyodor Kupolov's avatar Fyodor Kupolov
Browse files

Do not call buildInputMethodListLocked twice

Skip the call in PHASE_ACTIVITY_MANAGER_READY, because the list of input
methods hasn't change since buildInputMethodListLocked was called in the
constructor.

Bug: 32343335
Test: manual
Change-Id: Iabd475a9f825e9b49ae9fd2108009d2c34ee9738
parent 66ebaf7f
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -1105,7 +1105,6 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
                    mWindowManagerInternal.setOnHardKeyboardStatusChangeListener(
                    mWindowManagerInternal.setOnHardKeyboardStatusChangeListener(
                            mHardKeyboardListener);
                            mHardKeyboardListener);
                }
                }
                buildInputMethodListLocked(!mImeSelectedOnBoot /* resetDefaultEnabledIme */);
                if (!mImeSelectedOnBoot) {
                if (!mImeSelectedOnBoot) {
                    Slog.w(TAG, "Reset the default IME as \"Resource\" is ready here.");
                    Slog.w(TAG, "Reset the default IME as \"Resource\" is ready here.");
                    resetStateIfCurrentLocaleChangedLocked();
                    resetStateIfCurrentLocaleChangedLocked();