title: Dynamically skip pages in ViewPager
body: <p>I got a <code>ViewPager</code> which holds <code>Fragment</code>s via <code>FragmentStatePagerAdapter</code>. Let's say the pager initially holds the following pages (<code>Fragment</code>s):</p>
  
  <pre><code>A - B - C - D
  </code></pre>
  
  <p>When the user swipes, he can move from <strong><code>A</code></strong> to <strong><code>B</code></strong>, <strong><code>B</code></strong> to <strong><code>C</code></strong> etc.
  But there are cases when the user changes some options on the <code>A</code> page, he can move not to <strong><code>B</code></strong>, but <strong><code>C</code></strong>:</p>
  
  <pre><code>A - C - D
  </code></pre>
  
  <p>Then the user goes back to <strong><code>A</code></strong>, modifies something and that re-enables <strong><code>B</code></strong>:</p>
  
  <pre><code>A - B - C - D
  </code></pre>
  
  <p>How can i achieve this very dynamic behavior? I cannot add <code>Fragment</code>s any time when the user changes something and then re-populate the <code>ViewPager</code>, because it's slow and breaks the flow.</p>