Skip to content

Commit

Permalink
accessible value string
Browse files Browse the repository at this point in the history
  • Loading branch information
REAndroid committed Mar 27, 2023
1 parent ffc5364 commit fbf6b9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/reandroid/arsc/value/Value.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public interface Value {
ValueType getValueType();
int getData();
void setData(int data);
String getValueAsString();
ParentChunk getParentChunk();
default MainChunk getMainChunk(){
ParentChunk parentChunk = getParentChunk();
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/reandroid/arsc/value/ValueItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ private int initializeBytes(BlockReader reader) throws IOException {
setBytesLength(offset + size, false);
return readSize;
}
@Override
public String getValueAsString(){
StringItem stringItem = getDataAsPoolString();
if(stringItem!=null){
Expand Down

0 comments on commit fbf6b9e

Please sign in to comment.