aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/event/InputTransaction.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-03-05 21:28:25 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-05 21:28:25 -0800
commitea3c70ebe21e6dacab9ec99c44d85d6d40b8a3d7 (patch)
treea0b58bc26257ace56b33d0eeaa1d5f5bb0499d0d /java/src/com/android/inputmethod/event/InputTransaction.java
parent21ac406d9f2364f46808c56c7337d5a132a7e4e0 (diff)
parentdb38d5cf632e6e20178ca3bc1603eabd71c74d41 (diff)
downloadlatinime-ea3c70ebe21e6dacab9ec99c44d85d6d40b8a3d7.tar.gz
latinime-ea3c70ebe21e6dacab9ec99c44d85d6d40b8a3d7.tar.xz
latinime-ea3c70ebe21e6dacab9ec99c44d85d6d40b8a3d7.zip
am db38d5cf: [IL123] Put the settings values inside the transaction
* commit 'db38d5cf632e6e20178ca3bc1603eabd71c74d41': [IL123] Put the settings values inside the transaction
Diffstat (limited to 'java/src/com/android/inputmethod/event/InputTransaction.java')
-rw-r--r--java/src/com/android/inputmethod/event/InputTransaction.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/event/InputTransaction.java b/java/src/com/android/inputmethod/event/InputTransaction.java
index d770c5af4..3f709a674 100644
--- a/java/src/com/android/inputmethod/event/InputTransaction.java
+++ b/java/src/com/android/inputmethod/event/InputTransaction.java
@@ -16,6 +16,8 @@
package com.android.inputmethod.event;
+import com.android.inputmethod.latin.settings.SettingsValues;
+
/**
* An object encapsulating a single transaction for input.
*/
@@ -30,6 +32,7 @@ public class InputTransaction {
public static final int SHIFT_UPDATE_LATER = 2;
// Initial conditions
+ public final SettingsValues mSettingsValues;
// If the key inserts a code point, mKeyCode is always equal to the code points. Otherwise,
// it's always a code that may not be a code point, typically a negative number.
public final int mKeyCode;
@@ -42,8 +45,10 @@ public class InputTransaction {
// Outputs
private int mRequiredShiftUpdate = SHIFT_NO_UPDATE;
- public InputTransaction(final int keyCode, final int x, final int y, final long timestamp,
- final int spaceState, final int shiftState) {
+ public InputTransaction(final SettingsValues settingsValues, final int keyCode,
+ final int x, final int y, final long timestamp, final int spaceState,
+ final int shiftState) {
+ mSettingsValues = settingsValues;
mKeyCode = keyCode;
mX = x;
mY = y;