Skip to content

Commit

Permalink
Add last two unknown types for Text type chunks.
Browse files Browse the repository at this point in the history
  • Loading branch information
strazzere committed Apr 21, 2016
1 parent 7a2717c commit 3ec55b5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/android/content/res/chunk/types/TextTag.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public class TextTag extends GenericChunk implements Chunk {
private int commentIndex;

private int name;
private int unknown2;
private int unknown3;
private int rawValue;
private int typedValue;

public TextTag(ChunkType chunkType, IntReader inputReader) {
super(chunkType, inputReader);
Expand All @@ -52,8 +52,8 @@ public void readHeader(IntReader inputReader) throws IOException {
lineNumber = inputReader.readInt();
commentIndex = inputReader.readInt();
name = inputReader.readInt();
unknown2 = inputReader.readInt();
unknown3 = inputReader.readInt();
rawValue = inputReader.readInt();
typedValue = inputReader.readInt();
}

/*
Expand Down Expand Up @@ -86,8 +86,8 @@ public byte[] toBytes() {
.putInt(lineNumber)
.putInt(commentIndex)
.putInt(name)
.putInt(unknown2)
.putInt(unknown3)
.putInt(rawValue)
.putInt(typedValue)
.array();

return ByteBuffer.allocate(header.length + body.length)
Expand Down

0 comments on commit 3ec55b5

Please sign in to comment.