mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 02:35:19 +08:00
Declare buttonText final String, dont't change value inside reload
This commit is contained in:
committed by
Fredrik Fornwall
parent
9db8948f23
commit
a854960476
@@ -327,12 +327,7 @@ public final class ExtraKeysView extends GridLayout {
|
|||||||
|
|
||||||
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++) {
|
||||||
String buttonText = buttons[row][col];
|
final String buttonText = buttons[row][col];
|
||||||
|
|
||||||
if(buttonText == null) {
|
|
||||||
// The button will be an empty button outputting a space character, like s space bar
|
|
||||||
buttonText = " ";
|
|
||||||
}
|
|
||||||
|
|
||||||
Button button;
|
Button button;
|
||||||
if(Arrays.asList("CTRL", "ALT", "FN").contains(buttonText)) {
|
if(Arrays.asList("CTRL", "ALT", "FN").contains(buttonText)) {
|
||||||
|
Reference in New Issue
Block a user