An options you can use is to retain the instance of your fragment by setting in your fragment's onCreate()
the following:
setRetainInstance(true)
This means that this fragment will retain its instance and all the variable values that are assigned to it. This allows you to use those values without recurring to onSavedInstance
. So basically here what you need to do is to store the current position in a variable.
Be aware that, since you are retaining an instance you should be careful to verify when you create new instances so you don't end up with multiple instances if you don't wish to.