mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-05 02:22:55 +01:00
refactor: use easier to read string decode
This commit is contained in:
parent
db70927699
commit
2eac0339b4
@ -94,15 +94,15 @@ public class StringBlock {
|
|||||||
int offset = m_stringOffsets[index];
|
int offset = m_stringOffsets[index];
|
||||||
int length;
|
int length;
|
||||||
|
|
||||||
|
int[] val;
|
||||||
if (m_isUTF8) {
|
if (m_isUTF8) {
|
||||||
int[] val = getUtf8(m_strings, offset);
|
val = getUtf8(m_strings, offset);
|
||||||
offset = val[0];
|
offset = val[0];
|
||||||
length = val[1];
|
|
||||||
} else {
|
} else {
|
||||||
int[] val = getUtf16(m_strings, offset);
|
val = getUtf16(m_strings, offset);
|
||||||
offset += val[0];
|
offset += val[0];
|
||||||
length = val[1];
|
|
||||||
}
|
}
|
||||||
|
length = val[1];
|
||||||
return decodeString(offset, length);
|
return decodeString(offset, length);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user