diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/icon/patch/CustomBrandingPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/icon/patch/CustomBrandingPatch.kt index 083d5c372..3e3ad9872 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/icon/patch/CustomBrandingPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/icon/patch/CustomBrandingPatch.kt @@ -75,7 +75,7 @@ class CustomBrandingPatch : ResourcePatch() { } companion object : OptionsContainer() { - private var appName: String by option( + private var appName: String? by option( PatchOption.StringOption( key = "appName", default = "YouTube ReVanced", diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/theme/patch/ThemePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/theme/patch/ThemePatch.kt index 127502694..62b32f337 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/theme/patch/ThemePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/theme/patch/ThemePatch.kt @@ -20,7 +20,7 @@ import org.w3c.dom.Element @Version("0.0.1") class ThemePatch : ResourcePatch() { override fun execute(data: ResourceData): PatchResult { - val theme = Themes.of(theme) ?: return PatchResultError("Theme '$theme' not found.") + val theme = Themes.of(theme!!) ?: return PatchResultError("Theme '$theme' not found.") data.xmlEditor["res/values/colors.xml"].use { editor -> val resourcesNode = editor.file.getElementsByTagName("resources").item(0) as Element @@ -35,7 +35,7 @@ class ThemePatch : ResourcePatch() { } companion object : OptionsContainer() { - var theme: String by option( + var theme: String? by option( PatchOption.StringListOption( key = "theme", default = null,