Skip to content

Commit

Permalink
fix: generates XML key names if empty (#394) (PR #615)
Browse files Browse the repository at this point in the history
  • Loading branch information
bagipro authored and skylot committed Apr 21, 2019
1 parent 9d22b3c commit c74b7f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jadx-core/src/main/java/jadx/core/xmlgen/ResTableParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ private void parseEntry(PackageChunk pkg, int typeId, int entryId, EntryConfig c
int resRef = pkg.getId() << 24 | typeId << 16 | entryId;
String typeName = pkg.getTypeStrings()[typeId - 1];
String keyName = pkg.getKeyStrings()[key];
if(keyName.isEmpty()) {
keyName = "RES_" + resRef; // autogenerate key name
}
ResourceEntry ri = new ResourceEntry(resRef, pkg.getName(), typeName, keyName);
ri.setConfig(config);

Expand Down

0 comments on commit c74b7f2

Please sign in to comment.