17 lines
505 B
Plaintext
Vendored
17 lines
505 B
Plaintext
Vendored
// INTENTION_TEXT: Add @TargetApi(LOLLIPOP) Annotation
|
|
// INSPECTION_CLASS: com.android.tools.idea.lint.AndroidLintNewApiInspection
|
|
|
|
import android.annotation.TargetApi
|
|
import android.graphics.drawable.VectorDrawable
|
|
import android.os.Build
|
|
|
|
class VectorDrawableProvider {
|
|
val flag = false
|
|
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
|
|
fun getVectorDrawable(): VectorDrawable {
|
|
return when (flag) {
|
|
true -> VectorDrawable()
|
|
else -> VectorDrawable()
|
|
}
|
|
}
|
|
} |