This is a companion discussion topic for the original entry at https://www.raywenderlich.com/7503473-your-second-kotlin-android-app/lessons/25
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/7503473-your-second-kotlin-android-app/lessons/25
I was able to get this working but had a weird thing happen. When I was calling intent.getParcelbaleExtra it was nullableโฆ so I had to wrap it in a null check/let. It still works but wondering why I had to do this.
Yeah, this happens to me to. I think It occurs because we cannot assign a null safety when we use a lateinit
This is the solution :
list = intent.getParcelableExtra<TaskList?>(MainActivity.INTENT_LIST_KEY) as TaskList