aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/InputAttributes.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-12-20 08:02:07 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-12-20 08:02:07 +0000
commit689cff2e3b1ad3709033b36040dc8607a7cb53d6 (patch)
treec6c70b8dfcb08fd284c0880ff400037884c15841 /java/src/com/android/inputmethod/latin/InputAttributes.java
parentdb6d9b0ab4630348e6522883151c79ba9490a67a (diff)
parent1404c1af850236da4fe4ed3825b70cb228a1da5b (diff)
downloadlatinime-689cff2e3b1ad3709033b36040dc8607a7cb53d6.tar.gz
latinime-689cff2e3b1ad3709033b36040dc8607a7cb53d6.tar.xz
latinime-689cff2e3b1ad3709033b36040dc8607a7cb53d6.zip
Merge "[IL21] Move the workaround utils to a better place."
Diffstat (limited to 'java/src/com/android/inputmethod/latin/InputAttributes.java')
-rw-r--r--java/src/com/android/inputmethod/latin/InputAttributes.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/InputAttributes.java b/java/src/com/android/inputmethod/latin/InputAttributes.java
index fcf043031..b01bc4ba5 100644
--- a/java/src/com/android/inputmethod/latin/InputAttributes.java
+++ b/java/src/com/android/inputmethod/latin/InputAttributes.java
@@ -29,6 +29,7 @@ import com.android.inputmethod.latin.utils.StringUtils;
public final class InputAttributes {
private final String TAG = InputAttributes.class.getSimpleName();
+ final public String mTargetApplicationPackageName;
final public boolean mInputTypeNoAutoCorrect;
final public boolean mIsSettingsSuggestionStripOn;
final public boolean mApplicationSpecifiedCompletionOn;
@@ -36,6 +37,7 @@ public final class InputAttributes {
final private int mInputType;
public InputAttributes(final EditorInfo editorInfo, final boolean isFullscreenMode) {
+ mTargetApplicationPackageName = null != editorInfo ? editorInfo.packageName : null;
final int inputType = null != editorInfo ? editorInfo.inputType : 0;
final int inputClass = inputType & InputType.TYPE_MASK_CLASS;
mInputType = inputType;