@Override
 public boolean isViewFromObject(View view, Object object) {
   // Keep the card id in the view (tag). Used in DetailPagerFragment.
   BaseDetailFragment fragment = (BaseDetailFragment) object;
   if (view != null && fragment != null) {
     Card card = fragment.getCard();
     if (card != null) {
       view.setTag(card.getId());
     }
   }
   return super.isViewFromObject(view, object);
 }
 @Override
 public Fragment getItem(int position) {
   return BaseDetailFragment.newInstance(
       mCards.get(position), mDataProvider.shouldDisplayCardView());
 }