nhaarman
06/21/2017, 12:12 PMfindViewById takes a parameter for the result type. Unfortunately, this breaks with Kotlin:
val myView = findViewById(R.id.myview)
This does not compile anymore, instead you'd have to write:
val myView = findViewById<View>(R.id.myview)
val myView: View = findViewById(R.id.myview)
In your case this should work:
val mNavigation: View by lazy(LazyThreadSafetyMode.NONE) { findViewById(R.id.navigation) }