Libraryless. Click here for Pure Java version (1815L/12K).
static void aAddMenuItems(fS... items) {
androidUI(r {
Menu menu = aGetOptionsMenu();
if (menu == null) ret;
Set<S> set = ciSet();
int n = menu.size();
for i to n:
set.add(str(menu.getItem(i).getTitle()));
for (S s : items)
if (!set.contains(s))
menu.add(s);
});
}download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1014867 |
| Snippet name: | aAddMenuItems - add to Android context menu |
| Eternal ID of this version: | #1014867/5 |
| Text MD5: | 86c0370703ed165e461559ebaff4143c |
| Transpilation MD5: | f0696f8931bd51d4ea6205ed2709eb98 |
| Author: | stefan |
| Category: | javax / android |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-06-10 15:46:34 |
| Source code size: | 330 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1001 / 1713 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |