Take new name when layout rename started from reference
This commit is contained in:
+1
-4
@@ -48,10 +48,7 @@ class AndroidSimpleNameReferenceExtension : SimpleNameReferenceExtension {
|
|||||||
return psiFactory.createNameIdentifier(newSyntheticPropertyName.name)
|
return psiFactory.createNameIdentifier(newSyntheticPropertyName.name)
|
||||||
}
|
}
|
||||||
else if (isLayoutPackageIdentifier(reference)) {
|
else if (isLayoutPackageIdentifier(reference)) {
|
||||||
return if (newElementName.endsWith(".xml"))
|
return psiFactory.createSimpleName(newElementName.substringBeforeLast(".xml")).getIdentifier()
|
||||||
psiFactory.createSimpleName(newElementName.dropLast(".xml".length)).getIdentifier()
|
|
||||||
else
|
|
||||||
reference.element.getIdentifier()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return null
|
return null
|
||||||
|
|||||||
Reference in New Issue
Block a user