File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
patches/src/main/kotlin/app/revanced/patches/shared/layout/branding Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -63,8 +63,9 @@ internal fun baseCustomBrandingPatch(
6363 description = " Applies a custom app name and icon. Defaults to \" $defaultAppName \" and the ReVanced logo." ,
6464 use = false ,
6565) {
66- val iconResourceFileNamesPng = iconResourceFileNames.map { " $it .png" }.toTypedArray<String >()
67- val legacyIconResourceFileNamesPng = legacyIconResourceFileNames.map { " $it .png" }.toTypedArray<String >()
66+ fun Array<String>.addPngExtension () = this .map { " $it .png" }.toTypedArray<String >()
67+ val iconResourceFileNamesPng = iconResourceFileNames.addPngExtension()
68+ val legacyIconResourceFileNamesPng = legacyIconResourceFileNames.addPngExtension()
6869
6970 val appName by stringOption(
7071 key = " appName" ,
@@ -88,7 +89,7 @@ internal fun baseCustomBrandingPatch(
8889
8990 Each of these folders must contain the following files:
9091
91- ${formatResourceFileList(iconResourceFileNamesPng)}
92+ ${formatResourceFileList(( iconResourceFileNamesPng + legacyIconResourceFileNamesPng) )}
9293
9394 Optionally, a 'drawable' folder with the monochrome icon files:
9495
You can’t perform that action at this time.
0 commit comments