Files
kotlin-fork/idea/testData/android/lintQuickfix/findViewById/simple.kt.expected
T
Vyacheslav Gerasimov 5220dfc0ad Android: Add inspection & quickfix to convert findViewById to api 26
#KT-19940 Fixed Target Version 1.1.5
2017-09-01 13:32:52 +03:00

28 lines
653 B
Plaintext
Vendored

// INTENTION_TEXT: Convert cast to findViewById with type parameter
// INSPECTION_CLASS: org.jetbrains.kotlin.android.inspection.TypeParameterFindViewByIdInspection
import android.app.Activity
import android.os.Bundle
import android.widget.Button
import android.widget.TextView
class OtherActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_other)
val tvHello = findViewById<TextView>(R.id.tvHello)
}
}
class R {
object layout {
val activity_other = 100500
}
object id {
val tvHello = 0
}
}