mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-11-08 19:46:10 +01:00
extra keys view: fix crash in some cases
This commit is contained in:
parent
22f9b0fab2
commit
7b35f07c3d
1 changed files with 6 additions and 2 deletions
|
|
@ -116,6 +116,10 @@ public final class ExtraKeysView extends GridLayout {
|
|||
if (! state.isOn)
|
||||
return false;
|
||||
|
||||
if (state.button == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (state.button.isPressed())
|
||||
return true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue