val parent = activity.findViewById(android.R.id.content) as ViewGroup
Of course, if I had typed the declarations, they would all work. But as a good Kotlin developer, I did not.
val parent: ViewGroup = activity.findViewById(android.R.id.content)
I can only image the chagrin a team with a very large Kotlin Android codebase would face Has anyone come up with a regular expression, or shell script, anything that can automate this? I am a little rusty with that!