diff options
| author | Po Lu | 2023-02-21 21:07:57 +0800 |
|---|---|---|
| committer | Po Lu | 2023-02-21 21:07:57 +0800 |
| commit | 77feba74564c4d58b472b82fec0137091bb5c7e1 (patch) | |
| tree | 23d08bc1e5e0b11d95a09a7559e8224c9bbd56d0 /src/android.c | |
| parent | 8ca4162ecdb174e59d59fc127a1bc4fef7b89fa2 (diff) | |
| download | emacs-77feba74564c4d58b472b82fec0137091bb5c7e1.tar.gz emacs-77feba74564c4d58b472b82fec0137091bb5c7e1.zip | |
Update Android port
* java/org/gnu/emacs/EmacsContextMenu.java (EmacsContextMenu)
(addSubmenu, inflateMenuItems): Handle tooltips correctly.
* src/android.c (android_scan_directory_tree): Fix limit
generation for root directory.
* src/androidmenu.c (android_init_emacs_context_menu)
(android_menu_show): Implement menu item help text on Android
8.0 and later.
Diffstat (limited to 'src/android.c')
| -rw-r--r-- | src/android.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/android.c b/src/android.c index 0627b44f8fd..4639d84a2a1 100644 --- a/src/android.c +++ b/src/android.c | |||
| @@ -777,13 +777,17 @@ android_scan_directory_tree (char *file, size_t *limit_return) | |||
| 777 | 777 | ||
| 778 | /* If there are no tokens, just return the start of the directory | 778 | /* If there are no tokens, just return the start of the directory |
| 779 | tree. */ | 779 | tree. */ |
| 780 | |||
| 780 | if (!ntokens) | 781 | if (!ntokens) |
| 781 | { | 782 | { |
| 782 | SAFE_FREE (); | 783 | SAFE_FREE (); |
| 783 | 784 | ||
| 784 | /* Subtract the initial header bytes. */ | 785 | /* Return the size of the directory tree as the limit. |
| 786 | Do not subtract the initial header bytes, as the limit | ||
| 787 | is an offset from the start of the file. */ | ||
| 788 | |||
| 785 | if (limit_return) | 789 | if (limit_return) |
| 786 | *limit_return = directory_tree_size - 5; | 790 | *limit_return = directory_tree_size; |
| 787 | 791 | ||
| 788 | return start; | 792 | return start; |
| 789 | } | 793 | } |