mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-04-14 00:21:27 +00:00
Take new name when layout rename started from reference
This commit is contained in:
@@ -48,10 +48,7 @@ class AndroidSimpleNameReferenceExtension : SimpleNameReferenceExtension {
|
||||
return psiFactory.createNameIdentifier(newSyntheticPropertyName.name)
|
||||
}
|
||||
else if (isLayoutPackageIdentifier(reference)) {
|
||||
return if (newElementName.endsWith(".xml"))
|
||||
psiFactory.createSimpleName(newElementName.dropLast(".xml".length)).getIdentifier()
|
||||
else
|
||||
reference.element.getIdentifier()
|
||||
return psiFactory.createSimpleName(newElementName.substringBeforeLast(".xml")).getIdentifier()
|
||||
}
|
||||
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user