mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-20 16:57:34 +01:00
Merge branch 'minsko-master'
This commit is contained in:
commit
18143c037e
@ -62,6 +62,10 @@ public class ResFileDecoder {
|
||||
decode(inDir, inFileName, outDir, outFileName, "raw");
|
||||
return;
|
||||
}
|
||||
if (typeName.equals("font") && !".xml".equals(ext)) {
|
||||
decode(inDir, inFileName, outDir, outFileName, "raw");
|
||||
return;
|
||||
}
|
||||
if (typeName.equals("drawable") || typeName.equals("mipmap")) {
|
||||
if (inFileName.toLowerCase().endsWith(".9" + ext)) {
|
||||
outFileName = outResName + ".9" + ext;
|
||||
|
@ -308,7 +308,12 @@ public class BuildAndDecodeTest {
|
||||
File fontXml = new File((sTestNewDir + "/res/font"), "lobster.xml");
|
||||
File fontFile = new File((sTestNewDir + "/res/font"), "lobster_regular.otf");
|
||||
|
||||
// Per #1662, ensure font file is not encoded.
|
||||
assertTrue(fontXml.isFile());
|
||||
compareXmlFiles("/res/font/lobster.xml");
|
||||
|
||||
// If we properly skipped decoding the font (otf) file, this file should not exist
|
||||
assertFalse((new File((sTestNewDir + "/res/values"), "fonts.xml")).isFile());
|
||||
assertTrue(fontFile.isFile());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user