diff options
author | 2015-03-19 18:54:27 -0700 | |
---|---|---|
committer | 2015-03-20 09:03:48 -0700 | |
commit | 755b3d882f9d74ceaec7b59fe618dff3ad54f304 (patch) | |
tree | 9ea05d7ea436aae02b38fc77f5ab750e93ed874b /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 6e86632311a24af90ad35c98224ae25f226c1954 (diff) | |
download | latinime-755b3d882f9d74ceaec7b59fe618dff3ad54f304.tar.gz latinime-755b3d882f9d74ceaec7b59fe618dff3ad54f304.tar.xz latinime-755b3d882f9d74ceaec7b59fe618dff3ad54f304.zip |
Notify the facilitator on IME start/finish.
Allows the facilitator to flush language models without a recurring task.
Bug 19773937.
Change-Id: I01a3c10da26f9df38fee05df33387eb082e2ff33
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 71dc30b2a..790cd6910 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -792,6 +792,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen @SuppressWarnings("deprecation") void onStartInputViewInternal(final EditorInfo editorInfo, final boolean restarting) { super.onStartInputView(editorInfo, restarting); + + mDictionaryFacilitator.onStartInput(); // Switch to the null consumer to handle cases leading to early exit below, for which we // also wouldn't be consuming gesture data. mGestureConsumer = GestureConsumer.NULL_GESTURE_CONSUMER; @@ -970,6 +972,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen void onFinishInputInternal() { super.onFinishInput(); + mDictionaryFacilitator.onFinishInput(); final MainKeyboardView mainKeyboardView = mKeyboardSwitcher.getMainKeyboardView(); if (mainKeyboardView != null) { mainKeyboardView.closing(); |