aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Ouyang <ouyang@google.com>2012-09-26 22:54:15 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-09-26 22:54:15 -0700
commit2d9454b5d077d465924700f8c99f3f26e30cd6ec (patch)
treed3643c20318376efa1385dd6c3a0eeb1897adac0
parent4f097664822e0c5dfd4e2141ebd9c6244a3df247 (diff)
parent46f209fae2b056268b65ff1dec2c6f878dc1d9ac (diff)
downloadlatinime-2d9454b5d077d465924700f8c99f3f26e30cd6ec.tar.gz
latinime-2d9454b5d077d465924700f8c99f3f26e30cd6ec.tar.xz
latinime-2d9454b5d077d465924700f8c99f3f26e30cd6ec.zip
am 46f209fa: am 4d1f3d11: Merge "Make gestures work correctly on keyboards with accented keys" into jb-mr1-dev
* commit '46f209fae2b056268b65ff1dec2c6f878dc1d9ac': Make gestures work correctly on keyboards with accented keys
-rw-r--r--native/jni/src/proximity_info.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/native/jni/src/proximity_info.cpp b/native/jni/src/proximity_info.cpp
index d6990325e..fde93b5a9 100644
--- a/native/jni/src/proximity_info.cpp
+++ b/native/jni/src/proximity_info.cpp
@@ -239,8 +239,8 @@ int ProximityInfo::getKeyIndexOf(const int c) const {
// We do not have the coordinate data
return NOT_AN_INDEX;
}
- const int baseLowerC = static_cast<int>(toBaseLowerCase(c));
- hash_map_compat<int, int>::const_iterator mapPos = mCodeToKeyMap.find(baseLowerC);
+ const int lowerCode = static_cast<int>(toLowerCase(c));
+ hash_map_compat<int, int>::const_iterator mapPos = mCodeToKeyMap.find(lowerCode);
if (mapPos != mCodeToKeyMap.end()) {
return mapPos->second;
}
@@ -258,7 +258,7 @@ void ProximityInfo::initializeG() {
// TODO: Optimize
for (int i = 0; i < KEY_COUNT; ++i) {
const int code = mKeyCodePoints[i];
- const int lowerCode = toBaseLowerCase(code);
+ const int lowerCode = static_cast<int>(toLowerCase(code));
mCenterXsG[i] = mKeyXCoordinates[i] + mKeyWidths[i] / 2;
mCenterYsG[i] = mKeyYCoordinates[i] + mKeyHeights[i] / 2;
mCodeToKeyMap[lowerCode] = i;