The goal of this example is to show you a way to prevent the fragment state loss and consequently avoid potential crashes of your app using kotlin extensions and android support library (version up to 26.0.0).