Adds methods from SmartFragmentStatePagerAdapter

from https://gist.github.com/nesquena/c715c9b22fb873b1d259