fix: attribute name for scalar entries

This commit is contained in:
REAndroid 2023-05-01 20:45:16 +02:00
parent c7c6863bbd
commit 5301d4cbf2
2 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,6 @@ import com.reandroid.arsc.value.ResTableMapEntry;
import com.reandroid.arsc.value.attribute.AttributeBag;
import com.reandroid.arsc.value.attribute.AttributeBagItem;
import com.reandroid.common.EntryStore;
import com.reandroid.xml.XMLElement;
import java.io.IOException;

View File

@ -31,6 +31,7 @@ public class DecoderResTableEntry<OUTPUT> extends DecoderTableEntry<ResTableEntr
Entry entry = tableEntry.getParentEntry();
String tag = XmlHelper.toXMLTagName(entry.getTypeName());
writer.startTag(tag);
writer.attribute("name", entry.getName());
writeText(writer, entry.getPackageBlock(), tableEntry.getValue());
return writer.endTag(tag);
}