diff options
author | 2014-03-05 16:37:44 +0900 | |
---|---|---|
committer | 2014-03-27 17:51:32 +0900 | |
commit | 6bd3723e733308a8b6d88830335bb5f786235369 (patch) | |
tree | 2de031c0fba85e1d57afd05e91d08c34d60345c5 /java/src/com/android/inputmethod/event/InputTransaction.java | |
parent | 3c38e1f269ad34a663db672e5cfb291fb1931987 (diff) | |
download | latinime-6bd3723e733308a8b6d88830335bb5f786235369.tar.gz latinime-6bd3723e733308a8b6d88830335bb5f786235369.tar.xz latinime-6bd3723e733308a8b6d88830335bb5f786235369.zip |
[IL128] Remove passing some handlers.
Bug: 8636060
Change-Id: I088be9a7555265ca097667523defd73be4cbe37f
Diffstat (limited to 'java/src/com/android/inputmethod/event/InputTransaction.java')
-rw-r--r-- | java/src/com/android/inputmethod/event/InputTransaction.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/event/InputTransaction.java b/java/src/com/android/inputmethod/event/InputTransaction.java index 2e9014f20..4fe9b403e 100644 --- a/java/src/com/android/inputmethod/event/InputTransaction.java +++ b/java/src/com/android/inputmethod/event/InputTransaction.java @@ -40,6 +40,7 @@ public class InputTransaction { // Outputs private int mRequiredShiftUpdate = SHIFT_NO_UPDATE; + private boolean mRequiresUpdateSuggestions = false; public InputTransaction(final SettingsValues settingsValues, final Event event, final long timestamp, final int spaceState, final int shiftState) { @@ -50,10 +51,34 @@ public class InputTransaction { mShiftState = shiftState; } + /** + * Indicate that this transaction requires some type of shift update. + * @param updateType What type of shift update this requires. + */ public void requireShiftUpdate(final int updateType) { mRequiredShiftUpdate = Math.max(mRequiredShiftUpdate, updateType); } + + /** + * Gets what type of shift update this transaction requires. + * @return The shift update type. + */ public int getRequiredShiftUpdate() { return mRequiredShiftUpdate; } + + /** + * Indicate that this transaction requires updating the suggestions. + */ + public void setRequiresUpdateSuggestions() { + mRequiresUpdateSuggestions = true; + } + + /** + * Find out whether this transaction requires updating the suggestions. + * @return Whether this transaction requires updating the suggestions. + */ + public boolean requiresUpdateSuggestions() { + return mRequiresUpdateSuggestions; + } } |