19 lines
620 B
Plaintext
Vendored
19 lines
620 B
Plaintext
Vendored
// INTENTION_TEXT: Surround with if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { ... }
|
|
// INSPECTION_CLASS: com.android.tools.idea.lint.AndroidLintNewApiInspection
|
|
|
|
import android.graphics.drawable.VectorDrawable
|
|
import android.os.Build
|
|
|
|
class VectorDrawableProvider {
|
|
val flag = false
|
|
fun getVectorDrawable(): VectorDrawable {
|
|
return when (flag) {
|
|
true -> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
|
VectorDrawable()
|
|
} else {
|
|
TODO("VERSION.SDK_INT < LOLLIPOP")
|
|
}
|
|
else -> VectorDrawable()
|
|
}
|
|
}
|
|
} |