mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-12-15 13:31:14 +01:00
ExtraKeys: Prevent app crash if user specifies different row lengths
This commit is contained in:
parent
af7515247b
commit
b99d092305
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue