Fix possible ArrayIndexOutOfBoundsException
Bug: 8461864 Change-Id: Icd8f4f51ec064461c08d00c1c58bedf5fbae2553
This commit is contained in:
parent
1e5add7809
commit
fb658d6c53
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ public final class SubtypeLocale {
|
|||
|
||||
final String[] keyboardLayoutSetMap = res.getStringArray(
|
||||
R.array.locale_and_extra_value_to_keyboard_layout_set_map);
|
||||
for (int i = 0; i < keyboardLayoutSetMap.length; i += 2) {
|
||||
for (int i = 0; i + 1 < keyboardLayoutSetMap.length; i += 2) {
|
||||
final String key = keyboardLayoutSetMap[i];
|
||||
final String keyboardLayoutSet = keyboardLayoutSetMap[i + 1];
|
||||
sLocaleAndExtraValueToKeyboardLayoutSetMap.put(key, keyboardLayoutSet);
|
||||
|
|
Loading…
Reference in a new issue