Register Android api quickfixes for inlined api inspection

#KT-14857 Fixed
This commit is contained in:
Vyacheslav Gerasimov
2017-04-07 18:30:42 +03:00
parent 70d24d0108
commit 1d134ffc72
8 changed files with 90 additions and 0 deletions
@@ -0,0 +1,12 @@
import android.annotation.TargetApi
import android.os.Build
// INTENTION_TEXT: Add @TargetApi(KITKAT) Annotation
// INSPECTION_CLASS: org.jetbrains.android.inspections.klint.AndroidLintInspectionToolProvider$AndroidKLintInlinedApiInspection
class Test {
@TargetApi(Build.VERSION_CODES.KITKAT)
fun foo(): Int {
return android.R.attr.windowTranslucentStatus
}
}