diff options
author | 2014-05-12 09:36:50 +0000 | |
---|---|---|
committer | 2014-05-12 09:36:50 +0000 | |
commit | 495599989fdeb96823bd44b0a769d2efd1e660b1 (patch) | |
tree | d66559a94ae8165f043082c1f598a25b3e238b1b /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 116be29a89a2a88ca586f7344ebbc8af22a15326 (diff) | |
parent | fac678e13df2c6073bdd7f9dc2fca1d4e16f8309 (diff) | |
download | latinime-495599989fdeb96823bd44b0a769d2efd1e660b1.tar.gz latinime-495599989fdeb96823bd44b0a769d2efd1e660b1.tar.xz latinime-495599989fdeb96823bd44b0a769d2efd1e660b1.zip |
am fac678e1: Merge "Create the path for specifying combining rules in the subtype"
* commit 'fac678e13df2c6073bdd7f9dc2fca1d4e16f8309':
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(); |