mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-04 18:12:54 +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 length;
|
||||
|
||||
int[] val;
|
||||
if (m_isUTF8) {
|
||||
int[] val = getUtf8(m_strings, offset);
|
||||
val = getUtf8(m_strings, offset);
|
||||
offset = val[0];
|
||||
length = val[1];
|
||||
} else {
|
||||
int[] val = getUtf16(m_strings, offset);
|
||||
val = getUtf16(m_strings, offset);
|
||||
offset += val[0];
|
||||
length = val[1];
|
||||
}
|
||||
length = val[1];
|
||||
return decodeString(offset, length);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user