mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
13 lines
465 B
Plaintext
13 lines
465 B
Plaintext
// 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 {
|
|
fun getVectorDrawable(): VectorDrawable = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
|
VectorDrawable()
|
|
} else {
|
|
TODO("VERSION.SDK_INT < LOLLIPOP")
|
|
}
|
|
} |