diff options
author | 2014-05-12 09:33:27 +0000 | |
---|---|---|
committer | 2014-05-12 09:33:27 +0000 | |
commit | fac678e13df2c6073bdd7f9dc2fca1d4e16f8309 (patch) | |
tree | d66559a94ae8165f043082c1f598a25b3e238b1b /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 4fb490ff90423b17181e5402d7f2056d508f3f0a (diff) | |
parent | be99616afa2243fe48dc406d0a3f442cb05453b4 (diff) | |
download | latinime-fac678e13df2c6073bdd7f9dc2fca1d4e16f8309.tar.gz latinime-fac678e13df2c6073bdd7f9dc2fca1d4e16f8309.tar.xz latinime-fac678e13df2c6073bdd7f9dc2fca1d4e16f8309.zip |
Merge "Create the path for specifying combining rules in the subtype"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index d64a1a6f7..7dc566a14 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -733,6 +733,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen // Note that the calling sequence of onCreate() and onCurrentInputMethodSubtypeChanged() // is not guaranteed. It may even be called at the same time on a different thread. mSubtypeSwitcher.onSubtypeChanged(subtype); + mInputLogic.onSubtypeChanged(SubtypeLocaleUtils.getCombiningRulesExtraValue(subtype)); loadKeyboard(); } @@ -808,7 +809,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen // The app calling setText() has the effect of clearing the composing // span, so we should reset our state unconditionally, even if restarting is true. - mInputLogic.startInput(restarting, editorInfo); + // We also tell the input logic about the combining rules for the current subtype, so + // it can adjust its combiners if needed. + mInputLogic.startInput(restarting, editorInfo, + mSubtypeSwitcher.getCombiningRulesExtraValueOfCurrentSubtype()); // Note: the following does a round-trip IPC on the main thread: be careful final Locale currentLocale = mSubtypeSwitcher.getCurrentSubtypeLocale(); |