mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-84070 fix '@null' red code in android xml files
This commit is contained in:
+4
@@ -314,6 +314,10 @@ public class ResourceReferenceConverter extends ResolvingConverter<ResourceValue
|
||||
|
||||
@NotNull
|
||||
public PsiReference[] createReferences(GenericDomValue<ResourceValue> value, PsiElement element, ConvertContext context) {
|
||||
if ("@null".equals(value.getStringValue())) {
|
||||
return PsiReference.EMPTY_ARRAY;
|
||||
}
|
||||
|
||||
Module module = context.getModule();
|
||||
if (module != null) {
|
||||
AndroidFacet facet = AndroidFacet.getInstance(module);
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="10dip"
|
||||
android:text="@string/welcome"
|
||||
android:padding="@null"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
@@ -16,6 +17,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="10dip"
|
||||
android:text="<error>@string/animation_1_instructions</error>"
|
||||
android:padding="<error>@nul</error>"
|
||||
/>
|
||||
|
||||
<RadioGroup android:layout_width="fill_parent" android:layout_height="wrap_content"/>
|
||||
|
||||
Reference in New Issue
Block a user