Skip to content

Commit 78d0be4

Browse files
List legacy icons in description
1 parent 35b7362 commit 78d0be4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

patches/src/main/kotlin/app/revanced/patches/shared/layout/branding/BaseCustomBrandingPatch.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)