From b596b2c37b8a2766bc35dbf5d30675fa07f68656 Mon Sep 17 00:00:00 2001 From: KobeW50 <84587632+KobeW50@users.noreply.github.com> Date: Tue, 2 Jan 2024 17:50:12 -0500 Subject: [PATCH] `Change header` to `Custom header` --- .../header/{ChangeHeaderPatch.kt => CustomHeaderPatch.kt} | 4 ++-- .../youtube/layout/branding/header/PremiumHeadingPatch.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/main/kotlin/app/revanced/patches/youtube/layout/branding/header/{ChangeHeaderPatch.kt => CustomHeaderPatch.kt} (98%) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/header/ChangeHeaderPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/header/CustomHeaderPatch.kt similarity index 98% rename from src/main/kotlin/app/revanced/patches/youtube/layout/branding/header/ChangeHeaderPatch.kt rename to src/main/kotlin/app/revanced/patches/youtube/layout/branding/header/CustomHeaderPatch.kt index d1dfe72225..81cc1ea08e 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/header/ChangeHeaderPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/header/CustomHeaderPatch.kt @@ -11,7 +11,7 @@ import app.revanced.util.copyResources import java.io.File @Patch( - name = "Change header", + name = "Custom header", description = "Change the in app header. Defaults to the ReVanced header.", compatiblePackages = [ CompatiblePackage("com.google.android.youtube") @@ -19,7 +19,7 @@ import java.io.File use = false ) @Suppress("unused") -object ChangeHeaderPatch : ResourcePatch() { +object CustomHeaderPatch : ResourcePatch() { private const val HEADER_NAME = "yt_wordmark_header" private const val PREMIUM_HEADER_NAME = "yt_premium_wordmark_header" private const val REVANCED_HEADER_NAME = "ReVanced" diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/header/PremiumHeadingPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/header/PremiumHeadingPatch.kt index 5b88c8c286..72f0d1463d 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/header/PremiumHeadingPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/header/PremiumHeadingPatch.kt @@ -5,5 +5,5 @@ import app.revanced.patcher.patch.ResourcePatch @Deprecated("Use PremiumHeadingPatch instead.") object PremiumHeadingPatch : ResourcePatch() { - override fun execute(context: ResourceContext) = ChangeHeaderPatch.execute(context) + override fun execute(context: ResourceContext) = CustomHeaderPatch.execute(context) }