extra keys view: fix crash in some cases

This commit is contained in:
Leonid Plyushch 2019-02-25 14:06:49 +02:00
parent 22f9b0fab2
commit 7b35f07c3d

View file

@ -115,10 +115,14 @@ public final class ExtraKeysView extends GridLayout {
if (! state.isOn)
return false;
if (state.button == null) {
return false;
}
if (state.button.isPressed())
return true;
if (! state.button.isChecked())
return false;