1

Reloading of ViewPager doesn't create first 3 fragments

view story
linux-howto

http://stackoverflow.com – I have a SherlockFragment's based fragment which includes a ViewPager operating with Fragments via FragmentStatePagerAdapter. I implemented "infinite" scroll, so the adaptor returns getCount() 1000. It works. The problem occurs when I replace() the main fragment from the main activity with another data, onCreateView of this main fragment called like during the first initialization: I recreate adaptor and set it to the ViewPager, run notifyDataSetChanged() and set relevant view with setCurrentItem(). At this point I don't see the Fragment since getItem() is not called. In case I'm swiping the V (HowTos)