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

Commit b858c732 authored by satok's avatar satok
Browse files

Delay load the settings for the ongoing ime swither

Bug: 5029803
Change-Id: I488ff7804a986b71bf01b3dfad0e65fd4707965d
parent 7793719c
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) {