Listing 25.8 - Depreciated retainInstance

"retainInstance" has been depreciated. The Android developer pages say to use one of the methods the book authors are trying to avoid for expediency of teaching the topic at hand. You can still get through all of the examples in this chapter by just commenting out the retainInstance line in the code.

    override fun onCreate(savedInstanceState: Bundle?) {

        //retainInstance = true