Revert "switch to "startsWith" to stop AndroResGuard tricks"

This reverts commit c7f4dfe1db.
This commit is contained in:
Connor Tumbleson 2018-02-13 08:47:43 -05:00
parent 085e8f66ef
commit 65fb5c25c2
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.startsWith("raw")) {
if (typeName.equals("raw")) {
decode(inDir, inFileName, outDir, outFileName, "raw");
return;
}
if (typeName.startsWith("font") && !".xml".equals(ext)) {
if (typeName.equals("font") && !".xml".equals(ext)) {
decode(inDir, inFileName, outDir, outFileName, "raw");
return;
}
if (typeName.startsWith("drawable") || typeName.startsWith("mipmap")) {
if (typeName.equals("drawable") || typeName.equals("mipmap")) {
if (inFileName.toLowerCase().endsWith(".9" + ext)) {
outFileName = outResName + ".9" + ext;