mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-05 17:45:52 +01:00
AXmlResourceParser.getAttributeValue(): always try to use string value first.
This commit is contained in:
parent
285ee0a146
commit
6d923adf81
@ -306,12 +306,12 @@ public class AXmlResourceParser implements XmlResourceParser {
|
||||
|
||||
public String getAttributeValue(int index) {
|
||||
int offset = getAttributeOffset(index);
|
||||
int valueType = m_attributes[offset + ATTRIBUTE_IX_VALUE_TYPE];
|
||||
if (valueType == TypedValue.TYPE_STRING) {
|
||||
int valueString = m_attributes[offset + ATTRIBUTE_IX_VALUE_STRING];
|
||||
int valueString = m_attributes[offset + ATTRIBUTE_IX_VALUE_STRING];
|
||||
if (valueString != -1) {
|
||||
return AndrolibResources.escapeTextForResXml(
|
||||
m_strings.getString(valueString));
|
||||
}
|
||||
int valueType = m_attributes[offset + ATTRIBUTE_IX_VALUE_TYPE];
|
||||
int valueData = m_attributes[offset + ATTRIBUTE_IX_VALUE_DATA];
|
||||
|
||||
if (mAttrDecoder != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user