aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorChieu Nguyen <cvnguyen@google.com>2015-02-18 16:00:59 -0800
committerChieu Nguyen <cvnguyen@google.com>2015-02-18 16:00:59 -0800
commit40833d2dd79b193efd33036417ad1909273d9f7d (patch)
tree5272b932b84d677b35c459c032499945098af76d /java/src/com/android/inputmethod/latin/LatinIME.java
parent95711bfcee07d848883316cf07439408f5b332a1 (diff)
downloadlatinime-40833d2dd79b193efd33036417ad1909273d9f7d.tar.gz
latinime-40833d2dd79b193efd33036417ad1909273d9f7d.tar.xz
latinime-40833d2dd79b193efd33036417ad1909273d9f7d.zip
Add StatsUtils method for handling subtype change.
Change-Id: I0f334ab5e6f5aa41ad780641276dc3d2aa232f48
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-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 a1ab5c090..e7917ab90 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());