mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am fb658d6c: Fix possible ArrayIndexOutOfBoundsException
* commit 'fb658d6c531de8cfd55e4d36bffc9ccabc401f94': Fix possible ArrayIndexOutOfBoundsException
This commit is contained in:
commit
ec183b50ff
@ -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…
x
Reference in New Issue
Block a user