style: add comment for explanation of 9patch minimization

This commit is contained in:
Connor Tumbleson 2019-07-14 07:09:39 -04:00
parent bc9f465f3e
commit 5a51c5f96d
No known key found for this signature in database
GPG Key ID: C3CC0A201EC7DA75

View File

@ -173,6 +173,9 @@ public class Androlib {
unk.getSize(file) != 0) {
ext = FilenameUtils.getExtension(file);
// If we don't have a png extension, but we have multiple "dots", we may have another iteration
// of OEM specific 9patch files. We need to record full path for these.
if (ext.isEmpty() || (!ext.equals("png") && StringUtils.countMatches(file, ".") > 1)) {
ext = file;
}