mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-12-06 17:11:09 +01:00
extra keys: handle actions UP & CANCEL separately
Related issue: https://github.com/termux/termux-app/issues/905
This commit is contained in:
parent
677d75e173
commit
cf883f5f05
1 changed files with 7 additions and 1 deletions
|
|
@ -401,8 +401,14 @@ public final class ExtraKeysView extends GridLayout {
|
|||
}
|
||||
return true;
|
||||
|
||||
case MotionEvent.ACTION_UP:
|
||||
case MotionEvent.ACTION_CANCEL:
|
||||
v.setBackgroundColor(BUTTON_COLOR);
|
||||
if (scheduledExecutor != null) {
|
||||
scheduledExecutor.shutdownNow();
|
||||
scheduledExecutor = null;
|
||||
}
|
||||
return true;
|
||||
case MotionEvent.ACTION_UP:
|
||||
v.setBackgroundColor(BUTTON_COLOR);
|
||||
if (scheduledExecutor != null) {
|
||||
scheduledExecutor.shutdownNow();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue