aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/proximity_info_state.cpp
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2012-09-14 02:25:05 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-09-14 02:25:05 -0700
commit5d1c5f9653c68480d2f9b7ce4b4f3451148a6205 (patch)
tree393f96925d7f7b6b2c485964c96671a56c014148 /native/jni/src/proximity_info_state.cpp
parente5db4c815d49ad2f99580be9fa9a9599feb8ac8e (diff)
parent47684fb60d6a1812f02836032a71130b7272e746 (diff)
downloadlatinime-5d1c5f9653c68480d2f9b7ce4b4f3451148a6205.tar.gz
latinime-5d1c5f9653c68480d2f9b7ce4b4f3451148a6205.tar.xz
latinime-5d1c5f9653c68480d2f9b7ce4b4f3451148a6205.zip
am 47684fb6: Merge "Using isSkippableChar instead of \'\'\' and \'-\'." into jb-mr1-dev
* commit '47684fb60d6a1812f02836032a71130b7272e746': Using isSkippableChar instead of '\'' and '-'.
Diffstat (limited to 'native/jni/src/proximity_info_state.cpp')
-rw-r--r--native/jni/src/proximity_info_state.cpp4
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.