radzio
01/10/2018, 8:35 PMif(Build.VERSION.SDK_INT)
from my code. I've created this:
inline fun <T> T.applyForOreoOrAbove(block: T.() -> Unit): T {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
block()
}
return this
}
Unfortunately, Android Lint still complains that call requires... Is it a bug in the Lint or am I doing something wrong?https://i.imgur.com/Ts3EGv7.png▾
louiscad
01/10/2018, 8:37 PMjw
01/10/2018, 8:42 PMradzio
01/10/2018, 9:12 PMjw
01/10/2018, 9:16 PMradzio
01/10/2018, 9:17 PM