Пример #1
0
 @Override
 public boolean onOptionsItemSelected(MenuItem item) {
   if (item.getItemId() == MenuHelper.MENU_SHARE_ID) {
     BookShareHelper.share(this, book);
     return true;
   }
   return MenuHelper.onOptionsItemSelected(this, item);
 }
Пример #2
0
 @Override
 public boolean onSearchRequested() {
   return MenuHelper.onSearchRequested(this);
 }
Пример #3
0
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   return MenuHelper.onCreateOptionsMenu(menu, true);
 }