Skip to content

Commit

Permalink
fix: support 0_resource_name_obfuscated
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches committed May 16, 2023
1 parent fb4889f commit 024018a
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@ public class ResResSpec {
private final ResPackage mPackage;
private final ResTypeSpec mType;
private final Map<ResConfigFlags, ResResource> mResources = new LinkedHashMap<>();
private static final Set<String> EMPTY_RESOURCE_NAMES = Set.of(
"0_resource_name_obfuscated",
"(name removed)"
);

public ResResSpec(ResID id, String name, ResPackage pkg, ResTypeSpec type) {
this.mId = id;
String cleanName;

name = (("(name removed)".equals(name)) ? null : name);
name = EMPTY_RESOURCE_NAMES.contains(name) ? null : name;

ResResSpec resResSpec = type.getResSpecUnsafe(name);
if (resResSpec != null) {
Expand Down

0 comments on commit 024018a

Please sign in to comment.