am eaa7efd1: [ML29] Reinitialize the subtype at input start
* commit 'eaa7efd136473c8f7aaf1b930c4c810316cf4595': [ML29] Reinitialize the subtype at input startmain
commit
63ccc79aad
|
@ -857,6 +857,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
// also wouldn't be consuming gesture data.
|
// also wouldn't be consuming gesture data.
|
||||||
mGestureConsumer = GestureConsumer.NULL_GESTURE_CONSUMER;
|
mGestureConsumer = GestureConsumer.NULL_GESTURE_CONSUMER;
|
||||||
mRichImm.clearSubtypeCaches();
|
mRichImm.clearSubtypeCaches();
|
||||||
|
mSubtypeSwitcher.refreshSubtypeInfo();
|
||||||
final KeyboardSwitcher switcher = mKeyboardSwitcher;
|
final KeyboardSwitcher switcher = mKeyboardSwitcher;
|
||||||
switcher.updateKeyboardTheme();
|
switcher.updateKeyboardTheme();
|
||||||
final MainKeyboardView mainKeyboardView = switcher.getMainKeyboardView();
|
final MainKeyboardView mainKeyboardView = switcher.getMainKeyboardView();
|
||||||
|
|
|
@ -117,10 +117,14 @@ public final class SubtypeSwitcher {
|
||||||
final NetworkInfo info = connectivityManager.getActiveNetworkInfo();
|
final NetworkInfo info = connectivityManager.getActiveNetworkInfo();
|
||||||
mIsNetworkConnected = (info != null && info.isConnected());
|
mIsNetworkConnected = (info != null && info.isConnected());
|
||||||
|
|
||||||
onSubtypeChanged(mRichImm.getCurrentRawSubtype());
|
refreshSubtypeInfo();
|
||||||
updateParametersOnStartInputView();
|
updateParametersOnStartInputView();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void refreshSubtypeInfo() {
|
||||||
|
onSubtypeChanged(mRichImm.getCurrentRawSubtype());
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update parameters which are changed outside LatinIME. This parameters affect UI so that they
|
* Update parameters which are changed outside LatinIME. This parameters affect UI so that they
|
||||||
* should be updated every time onStartInputView is called.
|
* should be updated every time onStartInputView is called.
|
||||||
|
|
Loading…
Reference in New Issue