mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 00:21:28 +00:00
14 lines
478 B
Plaintext
Vendored
14 lines
478 B
Plaintext
Vendored
import android.os.Build
|
|
|
|
// INTENTION_TEXT: Surround with if (VERSION.SDK_INT >= VERSION_CODES.KITKAT) { ... }
|
|
// INSPECTION_CLASS: org.jetbrains.android.inspections.klint.AndroidLintInspectionToolProvider$AndroidKLintInlinedApiInspection
|
|
|
|
class Test {
|
|
fun foo(): Int {
|
|
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
|
|
android.R.attr.windowTranslucentStatus
|
|
} else {
|
|
TODO("VERSION.SDK_INT < KITKAT")
|
|
}
|
|
}
|
|
} |