mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 02:35:19 +08:00
state -> SpecialButtonState state
This commit is contained in:
committed by
Fredrik Fornwall
parent
a854960476
commit
ec77be00dc
@@ -331,7 +331,7 @@ public final class ExtraKeysView extends GridLayout {
|
||||
|
||||
Button button;
|
||||
if(Arrays.asList("CTRL", "ALT", "FN").contains(buttonText)) {
|
||||
state = specialButtons.get(SpecialButton.valueOf(buttonText)); // for valueOf: https://stackoverflow.com/a/604426/1980630
|
||||
SpecialButtonState state = specialButtons.get(SpecialButton.valueOf(buttonText)); // for valueOf: https://stackoverflow.com/a/604426/1980630
|
||||
state.isOn = true;
|
||||
button = state.button = new ToggleButton(getContext(), null, android.R.attr.buttonBarButtonStyle);
|
||||
button.setClickable(true);
|
||||
|
Reference in New Issue
Block a user