Implement quickfixes for Android Lint api issues
#KT-16624 Fixed #KT-16625 Fixed #KT-14947 Fixed
This commit is contained in:
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
package com.myapp
|
||||
|
||||
import android.content.Context
|
||||
import android.view.View
|
||||
|
||||
class DemoView constructor(context: Context): View(context) {
|
||||
fun test() {
|
||||
val b = context.getString(R.string.resource_id)
|
||||
}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
<resources>
|
||||
<string name="resource_id">some string</string>
|
||||
</resources>
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package com.myapp
|
||||
|
||||
import android.content.Context
|
||||
import android.view.View
|
||||
|
||||
class DemoView constructor(context: Context): View(context) {
|
||||
fun test() {
|
||||
val b = "some <caret>string"
|
||||
}
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"rFile": "../../R.kt",
|
||||
"resDirectory": "../../res",
|
||||
"intentionClass": "org.jetbrains.kotlin.android.intention.KotlinAndroidAddStringResource"
|
||||
}
|
||||
Reference in New Issue
Block a user