mirror of
https://github.com/revanced/Apktool.git
synced 2025-06-12 05:07:41 +02:00
Removes hardcoded extension of PNG to allow OEM versions (qmg)
- adds unit-tests via two qmg files (one 9 patch, one regular)
This commit is contained in:
@ -61,11 +61,11 @@ public class ResFileDecoder {
|
||||
return;
|
||||
}
|
||||
if (typeName.equals("drawable") || typeName.equals("mipmap")) {
|
||||
if (inFileName.toLowerCase().endsWith(".9.png")) {
|
||||
if (inFileName.toLowerCase().endsWith(".9." + ext)) {
|
||||
outFileName = outResName + ".9" + ext;
|
||||
|
||||
// check for htc .r.9.png
|
||||
if (inFileName.toLowerCase().endsWith(".r.9.png")) {
|
||||
if (inFileName.toLowerCase().endsWith(".r.9" + ext)) {
|
||||
outFileName = outResName + ".r.9" + ext;
|
||||
}
|
||||
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
Reference in New Issue
Block a user