ExtraKeys: Prevent app crash if user specifies different row lengths

This commit is contained in:
Henrik Grimler
2018-08-01 23:54:58 +02:00
committed by Fredrik Fornwall
parent af7515247b
commit b99d092305

View File

@@ -326,7 +326,7 @@ public final class ExtraKeysView extends GridLayout {
setColumnCount(cols); setColumnCount(cols);
for (int row = 0; row < rows; row++) { for (int row = 0; row < rows; row++) {
for (int col = 0; col < cols; col++) { for (int col = 0; col < buttons[row].length; col++) {
final String buttonText = buttons[row][col]; final String buttonText = buttons[row][col];
Button button; Button button;