Skip to content

Commit

Permalink
Allow empty title for menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
deepueg committed May 5, 2020
1 parent aa1302b commit f737f9f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private static MenuItem addButtonAsMenuItem(@NonNull NavigationBarButton button,
}
}

MenuItem menuItem = menu.add(Menu.NONE, itemId, Menu.NONE, button.getTitle() != null ? button.getTitle() : button.getId());
MenuItem menuItem = menu.add(Menu.NONE, itemId, Menu.NONE, button.getTitle());

if (icon != Menu.NONE) {
Logger.d(TAG, "setting native provided menu icon, ignoring icon passed inside NavigationBarButton");
Expand Down

0 comments on commit f737f9f

Please sign in to comment.