aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorChieu Nguyen <cvnguyen@google.com>2015-02-23 19:18:13 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-02-23 19:18:13 +0000
commitfd35422dfa3b738efa08c48970feb82c7d79d010 (patch)
tree1a721b3b6cd753431753e34807e4b79399ba6556 /java/src
parent3466a3bd7e2b9e9a57013533ed08c8e08bc19b33 (diff)
parent53b4bfdba01477860993bff29eefc337e3fd1d99 (diff)
downloadlatinime-fd35422dfa3b738efa08c48970feb82c7d79d010.tar.gz
latinime-fd35422dfa3b738efa08c48970feb82c7d79d010.tar.xz
latinime-fd35422dfa3b738efa08c48970feb82c7d79d010.zip
am 53b4bfdb: Merge "Add StatsUtils method for handling subtype change."
* commit '53b4bfdba01477860993bff29eefc337e3fd1d99': Add StatsUtils method for handling subtype change.
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index e37f20f09..550efa59f 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -793,6 +793,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
public void onCurrentInputMethodSubtypeChanged(final InputMethodSubtype subtype) {
// 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.
+ InputMethodSubtype oldSubtype = mRichImm.getCurrentSubtype().getRawSubtype();
+ StatsUtils.onSubtypeChanged(oldSubtype, subtype);
mRichImm.onSubtypeChanged(subtype);
mInputLogic.onSubtypeChanged(SubtypeLocaleUtils.getCombiningRulesExtraValue(subtype),
mSettings.getCurrent());