summaryrefslogtreecommitdiff
path: root/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2011-07-28 17:05:40 -0700
committerTadashi G. Takaoka <takaoka@google.com>2011-08-01 22:04:48 -0700
commit8da9a13760896cd78235b60d0ea680ea13620532 (patch)
treecb158b64dfcc32d3b5a65f31cc3441d6d3dc13a9 /java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java
parent8d7782bf3c0bb44c96c1db42b438bb23b6580a44 (diff)
Make Keyboard object immutable except shift state
This is the first step to implement suggestions pane as mini keyboard. Bug: 5023981 Change-Id: I90ffbde0fda19b4be68add449310997b56bf6904
Diffstat (limited to 'java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java')
-rw-r--r--java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java b/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java
index b78fd94ea..04096778b 100644
--- a/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java
+++ b/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java
@@ -69,7 +69,7 @@ public class LatinKeyboardView extends LatinKeyboardBaseView {
public void setKeyboard(Keyboard newKeyboard) {
super.setKeyboard(newKeyboard);
// One-seventh of the keyboard width seems like a reasonable threshold
- final int jumpThreshold = newKeyboard.getMinWidth() / 7;
+ final int jumpThreshold = newKeyboard.mOccupiedWidth / 7;
mJumpThresholdSquare = jumpThreshold * jumpThreshold;
}