aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2010-10-17 05:33:57 +0900
committerKen Wakasa <kwakasa@google.com>2010-10-17 12:42:40 +0900
commit86953d170d3a1c189628a373a5987cfc4c17c997 (patch)
tree1f6bbfe3848ea009698030beb609aaf03e1df15b /java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java
parent6e0998c94506051df3382458deb0428b2aa6f434 (diff)
downloadlatinime-86953d170d3a1c189628a373a5987cfc4c17c997.tar.gz
latinime-86953d170d3a1c189628a373a5987cfc4c17c997.tar.xz
latinime-86953d170d3a1c189628a373a5987cfc4c17c997.zip
DO NOT MERGE. Revise the setting hint visual and its handling code.
This is a follow up change to I8b38e280. bug: 3084022 Change-Id: I1062763d87b4498e19598b4e7d99bb91c510c6d2
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java b/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java
index 832c76880..b1b82b64d 100644
--- a/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java
+++ b/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java
@@ -858,7 +858,7 @@ public class LatinKeyboardBaseView extends View implements PointerTracker.UIProx
final int drawableHeight;
final int drawableX;
final int drawableY;
- if (isNumberAtEdgeOfPopupChars(key)) {
+ if (isLatinF1KeyOrNumberAtEdgeOfPopupChars(key)) {
drawableWidth = key.width;
drawableHeight = key.height;
drawableX = 0;
@@ -1226,13 +1226,20 @@ public class LatinKeyboardBaseView extends View implements PointerTracker.UIProx
return false;
}
+ private boolean isLatinF1KeyOrNumberAtEdgeOfPopupChars(Key key) {
+ return isNumberAtEdgeOfPopupChars(key) || isLatinF1Key(key);
+ }
+
private boolean isNonMicLatinF1KeyOrNumberAtEdgeOfPopupChars(Key key) {
return isNumberAtEdgeOfPopupChars(key) || isNonMicLatinF1Key(key);
}
+ private boolean isLatinF1Key(Key key) {
+ return (mKeyboard instanceof LatinKeyboard) && ((LatinKeyboard)mKeyboard).isF1Key(key);
+ }
+
private boolean isNonMicLatinF1Key(Key key) {
- return (mKeyboard instanceof LatinKeyboard)
- && ((LatinKeyboard)mKeyboard).isF1Key(key) && key.label != null;
+ return isLatinF1Key(key) && key.label != null;
}
private static boolean isNumberAtEdgeOfPopupChars(Key key) {