Esempio n. 1
0
 @Override
 public boolean onOptionsItemSelected(MenuItem item) {
   int itemId = item.getItemId();
   if (itemId == R.id.menu_watched_all) {
     fireTrackerEvent("Flag all watched");
     onFlagShowWatched(true);
     return true;
   } else if (itemId == R.id.menu_unwatched_all) {
     fireTrackerEvent("Flag all unwatched");
     onFlagShowWatched(false);
     return true;
   } else if (itemId == R.id.menu_collect_all) {
     fireTrackerEvent("Flag all collected");
     onFlagShowCollected(true);
     return true;
   } else if (itemId == R.id.menu_uncollect_all) {
     fireTrackerEvent("Flag all uncollected");
     onFlagShowCollected(false);
     return true;
   } else if (itemId == R.id.menu_sesortby) {
     fireTrackerEvent("Sort");
     showSortDialog();
     return true;
   } else {
     return super.onOptionsItemSelected(item);
   }
 }
 @Override
 public boolean onOptionsItemSelected(MenuItem item) {
   int itemId = item.getItemId();
   if (itemId == R.id.menu_sesortby) {
     showSortDialog();
     return true;
   } else {
     return super.onOptionsItemSelected(item);
   }
 }