floatingActionMenu.show(FloatingActionButton.this);
}
});
}
public void setMenu(Menu menu) {
<BUG>this.menu = menu;
floatingActionMenu = new FloatingActionMenu(getContext());</BUG>
floatingActionMenu.setMenu(menu);
setOnClickListener(new OnClickListener() {
@Override

floatingActionMenu.show(FloatingActionButton.this);
}
});
}
public void setMenu(Menu menu) {
this.menu = menu;
if (menu != null) {
floatingActionMenu = new FloatingActionMenu(getContext());
floatingActionMenu.setMenu(menu);
setOnClickListener(new OnClickListener() {
@Override
