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

Commit 3263f02b authored by satok's avatar satok Committed by Android (Google) Code Review
Browse files

Merge "Delay load the settings for the ongoing ime swither"

parents 3de3d6ad b858c732
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -166,7 +166,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
    private final KeyguardManager mKeyguardManager;
    private final Notification mImeSwitcherNotification;
    private final PendingIntent mImeSwitchPendingIntent;
    private final boolean mShowOngoingImeSwitcherForPhones;
    private boolean mShowOngoingImeSwitcherForPhones;
    private boolean mNotificationShown;

    class SessionState {
@@ -538,8 +538,8 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
        mImeSwitcherNotification.vibrate = null;
        Intent intent = new Intent(Settings.ACTION_SHOW_INPUT_METHOD_PICKER);
        mImeSwitchPendingIntent = PendingIntent.getBroadcast(mContext, 0, intent, 0);
        mShowOngoingImeSwitcherForPhones = mRes.getBoolean(
                com.android.internal.R.bool.show_ongoing_ime_switcher);

        mShowOngoingImeSwitcherForPhones = false;

        synchronized (mMethodMap) {
            mFileManager = new InputMethodFileManager(mMethodMap);
@@ -612,6 +612,8 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
        synchronized (mMethodMap) {
            if (!mSystemReady) {
                mSystemReady = true;
                mShowOngoingImeSwitcherForPhones = mRes.getBoolean(
                        com.android.internal.R.bool.show_ongoing_ime_switcher);
                try {
                    startInputInnerLocked();
                } catch (RuntimeException e) {