diff options
author | 2012-03-16 12:54:17 +0900 | |
---|---|---|
committer | 2012-03-16 12:54:17 +0900 | |
commit | ef08daddead8f189a4c38abdb1930f9c39c473ae (patch) | |
tree | 4a0417eae040b18e10cafcef03c2023116c7cc2e /java/src | |
parent | 5bee1b00c8fec7bf7b0f94e27b022cab3e8187e4 (diff) | |
download | latinime-ef08daddead8f189a4c38abdb1930f9c39c473ae.tar.gz latinime-ef08daddead8f189a4c38abdb1930f9c39c473ae.tar.xz latinime-ef08daddead8f189a4c38abdb1930f9c39c473ae.zip |
Do not change the proximity orders
Bug: 4343280
Change-Id: I4e2dfb00d9c843a8a285d409ac5ab8fca5fb1694
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/WordComposer.java | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/java/src/com/android/inputmethod/latin/WordComposer.java b/java/src/com/android/inputmethod/latin/WordComposer.java index 126ac47e7..a9609310c 100644 --- a/java/src/com/android/inputmethod/latin/WordComposer.java +++ b/java/src/com/android/inputmethod/latin/WordComposer.java @@ -177,7 +177,6 @@ public class WordComposer { private void add(int primaryCode, int[] codes, int keyX, int keyY) { final int newIndex = mCodes.size(); mTypedWord.appendCodePoint(primaryCode); - correctPrimaryJuxtapos(primaryCode, codes); mCodes.add(codes); if (newIndex < BinaryDictionary.MAX_WORD_LENGTH) { mXCoordinates[newIndex] = keyX; @@ -239,21 +238,6 @@ public class WordComposer { } /** - * Swaps the first and second values in the codes array if the primary code is not the first - * value in the array but the second. This happens when the preferred key is not the key that - * the user released the finger on. - * @param primaryCode the preferred character - * @param codes array of codes based on distance from touch point - */ - private static void correctPrimaryJuxtapos(int primaryCode, int[] codes) { - if (codes.length < 2) return; - if (codes[0] > 0 && codes[1] > 0 && codes[0] != primaryCode && codes[1] == primaryCode) { - codes[1] = codes[0]; - codes[0] = primaryCode; - } - } - - /** * Delete the last keystroke as a result of hitting backspace. */ public void deleteLast() { |