Fix AddTargetVersionCheckQuickFix, generate else branch with TODO
when surrounded statement used as expression #KT-17786 Fixed #KT-17788 Fixed
This commit is contained in:
+4
-2
@@ -8,8 +8,10 @@ class VectorDrawableProvider {
|
||||
val flag = false
|
||||
fun getVectorDrawable(): VectorDrawable {
|
||||
if (flag) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
return VectorDrawable()
|
||||
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
VectorDrawable()
|
||||
} else {
|
||||
TODO("VERSION.SDK_INT < LOLLIPOP")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user