mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
IDEA-82078 fix updating R references when renaming of Android resources
This commit is contained in:
@@ -120,7 +120,7 @@ public class RenameJavaVariableProcessor extends RenameJavaMemberProcessor {
|
||||
if (!(replacedOccurence instanceof PsiReferenceExpression)) return;
|
||||
PsiElement elem = ((PsiReferenceExpression)replacedOccurence).resolve();
|
||||
|
||||
if (elem == null || elem == field) {
|
||||
if (elem == null || elem == field || elem.isEquivalentTo(field)) {
|
||||
// If reference is unresolved, then field is not hidden by anyone...
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user