Merge "Update InputMethodSubtypeSwitchingController correctly"

This commit is contained in:
Yohei Yukawa
2014-05-21 14:03:33 +00:00
committed by Android (Google) Code Review

View File

@@ -773,8 +773,6 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
if (DEBUG) {
Slog.i(TAG, "Locale has been changed to " + newLocale);
}
// CircularList should be reset when the locale is changed.
mSwitchingController.resetCircularListLocked(mContext);
buildInputMethodListLocked(mMethodList, mMethodMap, resetDefaultEnabledIme);
if (!updateOnlyWhenLocaleChanged) {
final String selectedImiId = mSettings.getSelectedInputMethod();
@@ -2642,6 +2640,8 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
setInputMethodEnabledLocked(defaultImiId, true);
}
}
mSwitchingController.resetCircularListLocked(mContext);
}
// ----------------------------------------------------------------------