提交 49d57124 编写于 作者: N Nikolay Krasko

Take new name when layout rename started from reference

上级 da5f2a07
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册