]> git.eshelyaron.com Git - emacs.git/commit
Improve context menus on old versions of Android
authorPo Lu <luangruo@yahoo.com>
Sat, 4 Mar 2023 07:55:09 +0000 (15:55 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 4 Mar 2023 07:55:09 +0000 (15:55 +0800)
commit2634765bc382c27e2d11dc14174ca80d9cf41e15
tree3ef522e33fec01fbe0447dfc10306e6e58e17d8d
parent39a7e6b79fdeafc539a36f6831d922a2622cb679
Improve context menus on old versions of Android

* java/org/gnu/emacs/EmacsActivity.java (EmacsActivity): New
field `lastClosedMenu'.
(onContextMenuClosed): Don't send event if a menu is closed
twice in a row.  Also, clear wasSubmenuSelected immediately.
* java/org/gnu/emacs/EmacsContextMenu.java: Display submenus
manually in Android 6.0 and earlier.
* java/org/gnu/emacs/EmacsView.java (onCreateContextMenu)
(popupMenu): Adjust accordingly.
java/org/gnu/emacs/EmacsActivity.java
java/org/gnu/emacs/EmacsContextMenu.java
java/org/gnu/emacs/EmacsView.java