Extrakeys: fix rebase error

This commit is contained in:
Henrik Grimler
2018-07-29 18:03:41 +02:00
committed by Fredrik Fornwall
parent b3eabd9bad
commit 7187ed6950

View File

@@ -174,15 +174,15 @@ public final class ExtraKeysView extends GridLayout {
altButton = controlButton = fnButton = null; altButton = controlButton = fnButton = null;
removeAllViews(); removeAllViews();
final int rows = buttons.length;
int mx = 0; int mx = 0;
for (int row = 0; row < rows; row++) { for (int row = 0; row < rows; row++) {
if(buttons[row].length > mx) mx = buttons[row].length; if(buttons[row].length > mx) mx = buttons[row].length;
} }
final int rows = buttons.length;
final int cols = mx; final int cols = mx;
setRowCount(rows); setRowCount(rows);
setColumnCount(cols[0]); 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 < cols; col++) {