From 2ba31f13012284f4ae9d556cbaa01dc128f193df Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Wed, 25 Oct 2023 22:54:16 +0200 Subject: [PATCH] fix(YouTube - Custom branding): Set default values for patch options --- .../patches/youtube/layout/branding/CustomBrandingPatch.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/CustomBrandingPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/CustomBrandingPatch.kt index e01f51bc..c36aa012 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/CustomBrandingPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/CustomBrandingPatch.kt @@ -21,6 +21,7 @@ import java.nio.file.Files @Suppress("unused") object CustomBrandingPatch : ResourcePatch() { private const val REVANCED_ICON = "ReVanced*Logo" // Can never be a valid path. + private const val APP_NAME = "YouTube ReVanced" private val iconResourceFileNames = arrayOf( "adaptiveproduct_youtube_background_color_108", @@ -39,8 +40,9 @@ object CustomBrandingPatch : ResourcePatch() { private var appName by stringPatchOption( key = "appName", + default = APP_NAME, values = mapOf( - "YouTube ReVanced" to "YouTube ReVanced", + "YouTube ReVanced" to APP_NAME, "YT" to "YT", "YouTube" to "YouTube", ), @@ -50,6 +52,7 @@ object CustomBrandingPatch : ResourcePatch() { private var icon by stringPatchOption( key = "iconPath", + default = REVANCED_ICON, values = mapOf("ReVanced Logo" to REVANCED_ICON), title = "App icon", description = """