mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-07 10:35: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) {
|
public String getAttributeValue(int index) {
|
||||||
int offset = getAttributeOffset(index);
|
int offset = getAttributeOffset(index);
|
||||||
int valueType = m_attributes[offset + ATTRIBUTE_IX_VALUE_TYPE];
|
int valueString = m_attributes[offset + ATTRIBUTE_IX_VALUE_STRING];
|
||||||
if (valueType == TypedValue.TYPE_STRING) {
|
if (valueString != -1) {
|
||||||
int valueString = m_attributes[offset + ATTRIBUTE_IX_VALUE_STRING];
|
|
||||||
return AndrolibResources.escapeTextForResXml(
|
return AndrolibResources.escapeTextForResXml(
|
||||||
m_strings.getString(valueString));
|
m_strings.getString(valueString));
|
||||||
}
|
}
|
||||||
|
int valueType = m_attributes[offset + ATTRIBUTE_IX_VALUE_TYPE];
|
||||||
int valueData = m_attributes[offset + ATTRIBUTE_IX_VALUE_DATA];
|
int valueData = m_attributes[offset + ATTRIBUTE_IX_VALUE_DATA];
|
||||||
|
|
||||||
if (mAttrDecoder != null) {
|
if (mAttrDecoder != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user