From 6a6137325b82d3dc6ca09e7d918ea50e50c9ac03 Mon Sep 17 00:00:00 2001 From: Jatin Matani Date: Mon, 15 Sep 2014 11:48:58 -0700 Subject: [PATCH] Add StatsUtilManager.onStartInput & onFinishInput Bug:15657192 Change-Id: I6e976202812d1c1675bd7822c4a15686d1ec1fe9 --- .../android/inputmethod/latin/utils/StatsUtilsManager.java | 6 ++++++ java/src/com/android/inputmethod/latin/LatinIME.java | 2 ++ 2 files changed, 8 insertions(+) diff --git a/java-overridable/src/com/android/inputmethod/latin/utils/StatsUtilsManager.java b/java-overridable/src/com/android/inputmethod/latin/utils/StatsUtilsManager.java index 120b105d7..138f70f4c 100644 --- a/java-overridable/src/com/android/inputmethod/latin/utils/StatsUtilsManager.java +++ b/java-overridable/src/com/android/inputmethod/latin/utils/StatsUtilsManager.java @@ -38,6 +38,12 @@ public class StatsUtilsManager { public void onLoadSettings(final SettingsValues settingsValues) { } + public void onStartInputView() { + } + + public void onFinishInputView() { + } + public void onDestroy() { } } diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 69fe6de9a..f95c67fab 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -793,12 +793,14 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen @Override public void onStartInputView(final EditorInfo editorInfo, final boolean restarting) { mHandler.onStartInputView(editorInfo, restarting); + mStatsUtilsManager.onStartInputView(); } @Override public void onFinishInputView(final boolean finishingInput) { StatsUtils.onFinishInputView(); mHandler.onFinishInputView(finishingInput); + mStatsUtilsManager.onFinishInputView(); } @Override