This is a simple demo that shows how to save Fragment state when orientation changes. This repo is related to the following post. The Kotlin version of this repo can be found here.