private boolean onOptionsItemSelectedFullMode(MenuItem item) {
   switch (item.getItemId()) {
     case R.id.menu_crop:
       Photo photo = mPagerAdapter.getPhoto(mViews.pager.getCurrentItem());
       if (photo == null) return false;
       PhotoCropActivity.show(AdvancedDemoActivity.this, photo);
       return true;
     default:
       return false;
   }
 }
 private void onPhotoInPagerSelected(int position) {
   Photo photo = mPagerAdapter.getPhoto(position);
   if (photo == null) {
     mViews.pagerTitle.setText(null);
   } else {
     SpannableBuilder title = new SpannableBuilder(AdvancedDemoActivity.this);
     title
         .append(photo.getTitle())
         .append("\n")
         .createStyle()
         .setColorResId(R.color.text_secondary_light)
         .apply()
         .append(R.string.photo_by)
         .append(" ")
         .append(photo.getOwner().getUsername());
     mViews.pagerTitle.setText(title.build());
   }
 }