switch to "startsWith" to stop AndroResGuard tricks

This commit is contained in:
Connor Tumbleson 2018-02-08 17:14:54 -05:00 committed by Connor Tumbleson
parent da9fb5115e
commit c7f4dfe1db
No known key found for this signature in database
GPG Key ID: C3CC0A201EC7DA75

View File

@ -58,15 +58,15 @@ public class ResFileDecoder {
}
try {
if (typeName.equals("raw")) {
if (typeName.startsWith("raw")) {
decode(inDir, inFileName, outDir, outFileName, "raw");
return;
}
if (typeName.equals("font") && !".xml".equals(ext)) {
if (typeName.startsWith("font") && !".xml".equals(ext)) {
decode(inDir, inFileName, outDir, outFileName, "raw");
return;
}
if (typeName.equals("drawable") || typeName.equals("mipmap")) {
if (typeName.startsWith("drawable") || typeName.startsWith("mipmap")) {
if (inFileName.toLowerCase().endsWith(".9" + ext)) {
outFileName = outResName + ".9" + ext;