diff options
| author | Tadashi G. Takaoka <takaoka@google.com> | 2011-07-28 17:05:40 -0700 |
|---|---|---|
| committer | Tadashi G. Takaoka <takaoka@google.com> | 2011-08-01 22:04:48 -0700 |
| commit | 8da9a13760896cd78235b60d0ea680ea13620532 (patch) | |
| tree | cb158b64dfcc32d3b5a65f31cc3441d6d3dc13a9 /java/src/com/android/inputmethod/keyboard/KeyDetector.java | |
| parent | 8d7782bf3c0bb44c96c1db42b438bb23b6580a44 (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/KeyDetector.java')
| -rw-r--r-- | java/src/com/android/inputmethod/keyboard/KeyDetector.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/KeyDetector.java b/java/src/com/android/inputmethod/keyboard/KeyDetector.java index 6d25025c5..53d46a344 100644 --- a/java/src/com/android/inputmethod/keyboard/KeyDetector.java +++ b/java/src/com/android/inputmethod/keyboard/KeyDetector.java @@ -57,7 +57,7 @@ public class KeyDetector { mCorrectionX = (int)correctionX; mCorrectionY = (int)correctionY; mKeyboard = keyboard; - final int threshold = keyboard.getMostCommonKeyWidth(); + final int threshold = keyboard.mMostCommonKeyWidth; mProximityThresholdSquare = threshold * threshold; } |
