diff options
author | 2014-03-31 09:32:00 +0000 | |
---|---|---|
committer | 2014-03-31 09:32:00 +0000 | |
commit | 1dc354bed1d42551e02631d69a958e615e3dcdd7 (patch) | |
tree | d8bd4026ed33d0ed95c9f40cf15cab5a268a14b2 /java/src/com/android/inputmethod/event/InputTransaction.java | |
parent | dbadee96b6bc385b18377bd8b943e79097853849 (diff) | |
parent | 6bd3723e733308a8b6d88830335bb5f786235369 (diff) | |
download | latinime-1dc354bed1d42551e02631d69a958e615e3dcdd7.tar.gz latinime-1dc354bed1d42551e02631d69a958e615e3dcdd7.tar.xz latinime-1dc354bed1d42551e02631d69a958e615e3dcdd7.zip |
Merge "[IL128] Remove passing some handlers."
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; + } } |