aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinKeyboardView.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2010-10-01 04:02:12 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-10-01 04:02:12 -0700
commitc0fc4bf9932caf536af5d5d86bb61ec6d8a44a99 (patch)
tree15d65a1cfd92b17c5c37c4959898593d37f93b79 /java/src/com/android/inputmethod/latin/LatinKeyboardView.java
parentbd677880494f30d58913f1bac612a32410e6465b (diff)
parent8e1f1be0f3cfce4ed0623d3d137f53f034f5b718 (diff)
downloadlatinime-c0fc4bf9932caf536af5d5d86bb61ec6d8a44a99.tar.gz
latinime-c0fc4bf9932caf536af5d5d86bb61ec6d8a44a99.tar.xz
latinime-c0fc4bf9932caf536af5d5d86bb61ec6d8a44a99.zip
am 8e1f1be0: Long press mic/comma key bring mini keyboard with settings
Merge commit '8e1f1be0f3cfce4ed0623d3d137f53f034f5b718' into gingerbread-plus-aosp * commit '8e1f1be0f3cfce4ed0623d3d137f53f034f5b718': Long press mic/comma key bring mini keyboard with settings
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinKeyboardView.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinKeyboardView.java10
1 files changed, 0 insertions, 10 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinKeyboardView.java b/java/src/com/android/inputmethod/latin/LatinKeyboardView.java
index c4afd9a27..22d39f7aa 100644
--- a/java/src/com/android/inputmethod/latin/LatinKeyboardView.java
+++ b/java/src/com/android/inputmethod/latin/LatinKeyboardView.java
@@ -17,7 +17,6 @@
package com.android.inputmethod.latin;
import android.content.Context;
-import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.inputmethodservice.Keyboard;
@@ -42,8 +41,6 @@ public class LatinKeyboardView extends LatinKeyboardBaseView {
private Keyboard mPhoneKeyboard;
- private final boolean mLongPressCommaForSettingsEnabled;
-
/** Whether we've started dropping move events because we found a big jump */
private boolean mDroppingEvents;
/**
@@ -62,10 +59,6 @@ public class LatinKeyboardView extends LatinKeyboardBaseView {
public LatinKeyboardView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
-
- Resources res = context.getResources();
- mLongPressCommaForSettingsEnabled = res.getBoolean(
- R.bool.config_long_press_comma_for_settings_enabled);
}
public void setPhoneKeyboard(Keyboard phoneKeyboard) {
@@ -101,9 +94,6 @@ public class LatinKeyboardView extends LatinKeyboardBaseView {
} else if (primaryCode == '0' && getKeyboard() == mPhoneKeyboard) {
// Long pressing on 0 in phone number keypad gives you a '+'.
return invokeOnKey('+');
- } else if (primaryCode == KEYCODE_VOICE
- || (primaryCode == ',' && mLongPressCommaForSettingsEnabled)) {
- return invokeOnKey(KEYCODE_OPTIONS);
} else {
return super.onLongPress(key);
}