From 40833d2dd79b193efd33036417ad1909273d9f7d Mon Sep 17 00:00:00 2001 From: Chieu Nguyen Date: Wed, 18 Feb 2015 16:00:59 -0800 Subject: Add StatsUtils method for handling subtype change. Change-Id: I0f334ab5e6f5aa41ad780641276dc3d2aa232f48 --- java/src/com/android/inputmethod/latin/LatinIME.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java') 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()); -- cgit v1.2.3-83-g751a