mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-12 05:47:46 +01:00
[skip] remove confusing logic
This commit is contained in:
parent
8374839427
commit
af2f54245b
@ -60,13 +60,13 @@ public class StringBlock {
|
|||||||
if (styleCount != 0) {
|
if (styleCount != 0) {
|
||||||
block.m_styleOffsets = reader.readIntArray(styleCount);
|
block.m_styleOffsets = reader.readIntArray(styleCount);
|
||||||
}
|
}
|
||||||
{
|
|
||||||
int size = ((stylesOffset == 0) ? chunkSize : stylesOffset) - stringsOffset;
|
int size = ((stylesOffset == 0) ? chunkSize : stylesOffset) - stringsOffset;
|
||||||
block.m_strings = new byte[size];
|
block.m_strings = new byte[size];
|
||||||
reader.readFully(block.m_strings);
|
reader.readFully(block.m_strings);
|
||||||
}
|
|
||||||
if (stylesOffset != 0) {
|
if (stylesOffset != 0) {
|
||||||
int size = (chunkSize - stylesOffset);
|
size = (chunkSize - stylesOffset);
|
||||||
block.m_styles = reader.readIntArray(size / 4);
|
block.m_styles = reader.readIntArray(size / 4);
|
||||||
|
|
||||||
// read remaining bytes
|
// read remaining bytes
|
||||||
|
Loading…
Reference in New Issue
Block a user