mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-12-14 13:01:17 +01:00
Declare buttonText final String, dont't change value inside reload
This commit is contained in:
parent
9db8948f23
commit
a854960476
1 changed files with 1 additions and 6 deletions
|
|
@ -327,12 +327,7 @@ public final class ExtraKeysView extends GridLayout {
|
|||
|
||||
for (int row = 0; row < rows; row++) {
|
||||
for (int col = 0; col < cols; col++) {
|
||||
String buttonText = buttons[row][col];
|
||||
|
||||
if(buttonText == null) {
|
||||
// The button will be an empty button outputting a space character, like s space bar
|
||||
buttonText = " ";
|
||||
}
|
||||
final String buttonText = buttons[row][col];
|
||||
|
||||
Button button;
|
||||
if(Arrays.asList("CTRL", "ALT", "FN").contains(buttonText)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue