1376c8f8cf
#KT-16624 Fixed #KT-16625 Fixed #KT-14947 Fixed
15 lines
535 B
Kotlin
Vendored
15 lines
535 B
Kotlin
Vendored
// INTENTION_TEXT: Add @RequiresApi(LOLLIPOP) Annotation
|
|
// INSPECTION_CLASS: org.jetbrains.android.inspections.klint.AndroidLintInspectionToolProvider$AndroidKLintNewApiInspection
|
|
// DEPENDENCY: RequiresApi.java -> android/support/annotation/RequiresApi.java
|
|
|
|
import android.graphics.drawable.VectorDrawable
|
|
|
|
class VectorDrawableProvider {
|
|
val flag = false
|
|
fun getVectorDrawable(): VectorDrawable {
|
|
return when (flag) {
|
|
true -> <caret>VectorDrawable()
|
|
else -> VectorDrawable()
|
|
}
|
|
}
|
|
} |