Am I missing something or do Fragments not have a onRestoreInstanceState() method? If not, how do I go about attaining something similar?
Fragment
onRestoreInstanceState()
Fragments do not have an onRestoreInstanceState method.
onRestoreInstanceState
You can achieve the same result in onActivityCreated, which receives a bundle with the saved instance state (or null).
onActivityCreated
Check the source code here.
2.1m questions
2.1m answers
60 comments
57.0k users