Skip to content
Snippets Groups Projects
Commit a84f7848 authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi Committed by Android (Google) Code Review
Browse files

Merge "Fix: The top left key is a proximity of nonexistent keys."

parents 274eae95 65012551
No related branches found
No related tags found
No related merge requests found
......@@ -164,6 +164,9 @@ class ProximityInfoUtils {
const int gridWidth, const int mostCommonKeyWidth, const int keyCount,
const int x, const int y, const int primaryKey, const char *const localeStr,
const hash_map_compat<int, int> *const codeToKeyMap, int *proximities) {
if (x == NOT_A_COORDINATE || y == NOT_A_COORDINATE) {
return;
}
const int mostCommonKeyWidthSquare = mostCommonKeyWidth * mostCommonKeyWidth;
int insertPos = 0;
proximities[insertPos++] = primaryKey;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment