diff options
author | Po Lu <luangruo@yahoo.com> | 2024-02-21 21:49:35 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2024-02-21 21:55:48 +0800 |
commit | 0a4d4781ddc079509cb256edf803d663439dcf92 (patch) | |
tree | d822fa7613935383f9a6d7264b067049d082c06e /java | |
parent | 3b34c5e4a583dd88f476570cbd58655a18e9a6b4 (diff) | |
download | emacs-0a4d4781ddc079509cb256edf803d663439dcf92.tar.gz |
* java/org/gnu/emacs/EmacsContextMenu.java (display): Reduce timeout.
Diffstat (limited to 'java')
-rw-r--r-- | java/org/gnu/emacs/EmacsContextMenu.java | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/java/org/gnu/emacs/EmacsContextMenu.java b/java/org/gnu/emacs/EmacsContextMenu.java index f1d70f05a25..2bbf2a313d6 100644 --- a/java/org/gnu/emacs/EmacsContextMenu.java +++ b/java/org/gnu/emacs/EmacsContextMenu.java @@ -367,16 +367,15 @@ public final class EmacsContextMenu rc = display1 (window, xPosition, yPosition); /* Android 3.0 to Android 7.0 perform duplicate calls to - onContextMenuClosed after a context menu is dismissed for - the second or third time. Since the second call after such - a dismissal is otherwise liable to prematurely cancel any - context menu displayed immediately afterwards, ignore calls - received within 300 milliseconds of this menu's being - displayed. */ + onContextMenuClosed the second time a context menu is + dismissed. Since the second call after such a dismissal is + otherwise liable to prematurely cancel any context menu + displayed immediately afterwards, ignore calls received + within 150 milliseconds of this menu's being displayed. */ if (rc && Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB && Build.VERSION.SDK_INT < Build.VERSION_CODES.N) - wasSubmenuSelected = System.currentTimeMillis (); + wasSubmenuSelected = System.currentTimeMillis () - 150; return rc; } |