diff options
Diffstat (limited to 'java/org/gnu')
| -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 | |||
| 367 | rc = display1 (window, xPosition, yPosition); | 367 | rc = display1 (window, xPosition, yPosition); |
| 368 | 368 | ||
| 369 | /* Android 3.0 to Android 7.0 perform duplicate calls to | 369 | /* Android 3.0 to Android 7.0 perform duplicate calls to |
| 370 | onContextMenuClosed after a context menu is dismissed for | 370 | onContextMenuClosed the second time a context menu is |
| 371 | the second or third time. Since the second call after such | 371 | dismissed. Since the second call after such a dismissal is |
| 372 | a dismissal is otherwise liable to prematurely cancel any | 372 | otherwise liable to prematurely cancel any context menu |
| 373 | context menu displayed immediately afterwards, ignore calls | 373 | displayed immediately afterwards, ignore calls received |
| 374 | received within 300 milliseconds of this menu's being | 374 | within 150 milliseconds of this menu's being displayed. */ |
| 375 | displayed. */ | ||
| 376 | 375 | ||
| 377 | if (rc && Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB | 376 | if (rc && Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB |
| 378 | && Build.VERSION.SDK_INT < Build.VERSION_CODES.N) | 377 | && Build.VERSION.SDK_INT < Build.VERSION_CODES.N) |
| 379 | wasSubmenuSelected = System.currentTimeMillis (); | 378 | wasSubmenuSelected = System.currentTimeMillis () - 150; |
| 380 | 379 | ||
| 381 | return rc; | 380 | return rc; |
| 382 | } | 381 | } |