Fix Android SuppressLint and Api quickfixes: proper annotation placing
#KT-17783 Fixed #KT-17787 Fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// INTENTION_TEXT: Add @TargetApi(M) Annotation
|
||||
// INSPECTION_CLASS: org.jetbrains.android.inspections.klint.AndroidLintInspectionToolProvider$AndroidKLintNewApiInspection
|
||||
import android.annotation.TargetApi
|
||||
import android.app.Activity
|
||||
import android.os.Build
|
||||
|
||||
val top: Int
|
||||
@TargetApi(Build.VERSION_CODES.M)
|
||||
get() = Activity().checkSelfPermission(READ_CONTACTS)
|
||||
Reference in New Issue
Block a user