Implemented kotlin quick fix provider for create android resource quick fixes

#KT-10465 Fixed
#KT-12880 Fixed
This commit is contained in:
Vyacheslav Gerasimov
2016-11-03 13:56:02 +03:00
parent 29b9521596
commit 9534934f43
32 changed files with 327 additions and 11 deletions
@@ -0,0 +1,7 @@
package com.myapp;
public final class R {
public static final class string {
public static final int my_activity_title = 0x7f060021;
}
}
@@ -0,0 +1,4 @@
{
"isApplicable": false,
"intentionText": "Create string value resource 'my_activity_title'"
}
@@ -0,0 +1,5 @@
import android.content.Context
import com.myapp.R
fun Context.getActivityTitle() = getString(R.string.<caret>my_activity_title)