mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 02:35:19 +08:00
ExtraKeys: Prevent app crash if user specifies different row lengths
This commit is contained in:
committed by
Fredrik Fornwall
parent
af7515247b
commit
b99d092305
@@ -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;
|
||||||
|
Reference in New Issue
Block a user