diff options
author | 2012-09-14 10:31:08 -0700 | |
---|---|---|
committer | 2012-09-14 10:31:08 -0700 | |
commit | c10a5b967b9cf473e8ebe957d5531619989079c5 (patch) | |
tree | 393f96925d7f7b6b2c485964c96671a56c014148 /native/jni/src/proximity_info_state.cpp | |
parent | a0f88a628e4b1820b80073e64aec790b4e6ffc4a (diff) | |
parent | 5d1c5f9653c68480d2f9b7ce4b4f3451148a6205 (diff) | |
download | latinime-c10a5b967b9cf473e8ebe957d5531619989079c5.tar.gz latinime-c10a5b967b9cf473e8ebe957d5531619989079c5.tar.xz latinime-c10a5b967b9cf473e8ebe957d5531619989079c5.zip |
am 5d1c5f96: am 47684fb6: Merge "Using isSkippableChar instead of \'\'\' and \'-\'." into jb-mr1-dev
* commit '5d1c5f9653c68480d2f9b7ce4b4f3451148a6205':
Using isSkippableChar instead of '\'' and '-'.
Diffstat (limited to 'native/jni/src/proximity_info_state.cpp')
-rw-r--r-- | native/jni/src/proximity_info_state.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/native/jni/src/proximity_info_state.cpp b/native/jni/src/proximity_info_state.cpp index 7e917a929..3edd9b391 100644 --- a/native/jni/src/proximity_info_state.cpp +++ b/native/jni/src/proximity_info_state.cpp @@ -469,9 +469,7 @@ float ProximityInfoState::getPointToKeyLength(const int inputIndex, const int co const int index = inputIndex * mProximityInfo->getKeyCount() + keyId; return min(mDistanceCache[index] * scale, mMaxPointToKeyLength); } - // TODO: Do not hardcode here - // No penalty to ' and - - if (codePoint == '\'' || codePoint == '-') { + if (isSkippableChar(codePoint)) { return 0; } // If the char is not a key on the keyboard then return the max length. |