mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-11-08 19:46:10 +01:00
Fix refactoring, Ctrl, Alt, Fn keys work again
This commit is contained in:
parent
ec77be00dc
commit
af7515247b
1 changed files with 7 additions and 7 deletions
|
|
@ -125,7 +125,7 @@ public final class ExtraKeysView extends GridLayout {
|
||||||
|
|
||||||
public boolean readSpecialButton(SpecialButton name) {
|
public boolean readSpecialButton(SpecialButton name) {
|
||||||
SpecialButtonState state = specialButtons.get(name);
|
SpecialButtonState state = specialButtons.get(name);
|
||||||
if(state == null)
|
if (state == null)
|
||||||
throw new RuntimeException("Must be a valid special button (see source)");
|
throw new RuntimeException("Must be a valid special button (see source)");
|
||||||
|
|
||||||
if (! state.isOn)
|
if (! state.isOn)
|
||||||
|
|
@ -134,12 +134,12 @@ public final class ExtraKeysView extends GridLayout {
|
||||||
if (state.button.isPressed())
|
if (state.button.isPressed())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (state.button.isChecked()) {
|
if (! state.button.isChecked())
|
||||||
state.button.setChecked(false);
|
return false;
|
||||||
state.button.setTextColor(TEXT_COLOR);
|
|
||||||
}
|
state.button.setChecked(false);
|
||||||
|
state.button.setTextColor(TEXT_COLOR);
|
||||||
return state.button.isChecked();
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void popup(View view, String text) {
|
void popup(View view, String text) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue