aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2010-09-06 02:19:13 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-09-06 02:19:13 -0700
commitcba7b0b6ab07fcff29e06c2e81ae7e8791d158ef (patch)
tree13a890e9cec9ad3b17f1ccb433391df04f50e4d5 /java/src/com/android/inputmethod/latin/KeyboardSwitcher.java
parent7ec731a7eeaf36dcef039325a621c95ec2047899 (diff)
parentd5bcbf8156fdba8199452b8f95ed1940b7e96d31 (diff)
downloadlatinime-cba7b0b6ab07fcff29e06c2e81ae7e8791d158ef.tar.gz
latinime-cba7b0b6ab07fcff29e06c2e81ae7e8791d158ef.tar.xz
latinime-cba7b0b6ab07fcff29e06c2e81ae7e8791d158ef.zip
am d5bcbf81: am c8b9afe0: Support multi-touch only when device has distinct multi-touch panel
Merge commit 'd5bcbf8156fdba8199452b8f95ed1940b7e96d31' * commit 'd5bcbf8156fdba8199452b8f95ed1940b7e96d31': Support multi-touch only when device has distinct multi-touch panel
Diffstat (limited to 'java/src/com/android/inputmethod/latin/KeyboardSwitcher.java')
-rw-r--r--java/src/com/android/inputmethod/latin/KeyboardSwitcher.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java b/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java
index 2919e9b56..3fb74b238 100644
--- a/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java
+++ b/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java
@@ -365,6 +365,10 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha
}
}
+ public boolean hasDistinctMultitouch() {
+ return mInputView != null && mInputView.hasDistinctMultitouch();
+ }
+
/**
* Updates state machine to figure out when to automatically switch back to alpha mode.
* Returns true if the keyboard needs to switch back