mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-06 03:50:19 +02:00
action types in API
This commit is contained in:
parent
9b7a49b786
commit
a486a58d3f
2 changed files with 44 additions and 11 deletions
|
@ -348,7 +348,13 @@ public final class FBReader extends ZLAndroidActivity {
|
|||
synchronized (myPluginActions) {
|
||||
int index = 0;
|
||||
for (PluginApi.ActionInfo info : myPluginActions) {
|
||||
addMenuItem(menu, PLUGIN_ACTION_PREFIX + index++, info.MenuItemName);
|
||||
if (info instanceof PluginApi.MenuActionInfo) {
|
||||
addMenuItem(
|
||||
menu,
|
||||
PLUGIN_ACTION_PREFIX + index++,
|
||||
((PluginApi.MenuActionInfo)info).MenuItemName
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue