title: Change DotsPageIndicator position programmatically
body: <p>I made one <code>GridView</code> with <code>DotsPageIndicator</code>.</p>
  
  <pre><code>private GridViewPager pager;
  private DotsPageIndicator dotsPageIndicator;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_teste);
      pager = (GridViewPager) findViewById(R.id.pager);
      pager.setAdapter(new GridPagerAdapter(getFragmentManager()));
      dotsPageIndicator = (DotsPageIndicator) findViewById(R.id.page_indicator);
      dotsPageIndicator.setDotFadeWhenIdle(false);
      dotsPageIndicator.setPager(pager);
  }
  
  @Override
  public void onResume() {
      super.onResume();
      pager.getAdapter().notifyDataSetChanged();
  }
  </code></pre>
  
  <p>When I use <code>notifyDataSetChanged()</code> the position of dots is lost and it returns to the first. How can I change dots position programmatically?</p>