Switch to 181 platform
This commit is contained in:
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
// INTENTION_TEXT: Surround with if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { ... }
|
||||
// INSPECTION_CLASS: org.jetbrains.android.inspections.klint.AndroidLintInspectionToolProvider$AndroidKLintNewApiInspection
|
||||
|
||||
import android.app.Activity
|
||||
import android.graphics.drawable.VectorDrawable
|
||||
import android.os.Build
|
||||
|
||||
data class ValueProvider(var p1: VectorDrawable, val p2: Int)
|
||||
|
||||
val activity = Activity()
|
||||
fun foo() {
|
||||
val (v1, v2) = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
ValueProvider(VectorDrawable(), 0)
|
||||
} else {
|
||||
TODO("VERSION.SDK_INT < LOLLIPOP")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user