Skip to content

Commit

Permalink
fix: search in resource classes by original name, not by alias (#562)…
Browse files Browse the repository at this point in the history
… (PR #571)
  • Loading branch information
asashour authored and skylot committed Apr 9, 2019
1 parent fe41174 commit 23c05bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ private FieldNode getResourceField(Integer value, DexNode dex) {
String typeName = parts[0];
String fieldName = parts[1];
for (ClassNode innerClass : appResClass.getInnerClasses()) {
if (innerClass.getShortName().equals(typeName)) {
if (innerClass.getClassInfo().getShortName().equals(typeName)) {
return innerClass.searchFieldByName(fieldName);
}
}
Expand Down

0 comments on commit 23c05bb

Please sign in to comment.