mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 10:45:23 +08:00
extra keys: handle actions UP & CANCEL separately
Related issue: https://github.com/termux/termux-app/issues/905
This commit is contained in:
committed by
Fredrik Fornwall
parent
677d75e173
commit
cf883f5f05
@@ -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();
|
||||
|
Reference in New Issue
Block a user