title: onPageSelected called instatly on viewPager.setCurrentItem
body: <p>For my project i use swipeable tabs to navigate between lists.
  When deleting one of these lists, i would like to have a smooth animation and try to archive this by using <code>viewpager.setCurrentItem(page, true);</code> to first switch to another page, before deleting the list.
  I then try to catch the event after switching page to delete the list with a <code>OnPageChangeListener</code>.</p>
  
  <p>My problem is that it seems like the <code>onPageSelected(int position)</code> is called before the animation is complete.</p>
  
  <p>Here's the code :)</p>
  
  <p>Where i start the animation:</p>
  
  <pre><code>case R.id.menu_clear_lists:
  int pageAmount = sectionsPagerAdapter.getCount();
  if (pageAmount &lt; 2)
  return false;
  int page = viewPager.getCurrentItem();
  int newPage = page == 0 ? page + 1 : page - 1;
  deleteOnChange = true;
  deletePage = page;
  viewPager.setCurrentItem(newPage, true);
  return true;
  </code></pre>
  
  <p>The eventhandler:</p>
  
  <pre><code>if (!deleteOnChange)
      return;
  deleteOnChange = false;
  Resource.deleteList(deletePage);
  sectionsPagerAdapter.destroyItem(viewPager,
  viewPager.getCurrentItem(),
  sectionsPagerAdapter.getItem(deletePage));
  sectionsPagerAdapter.notifyDataSetChanged();
  </code></pre>
  
  <p>I hope someone has the solution for my problem :)</p>