Skip to content

Commit

Permalink
Change header to Custom header
Browse files Browse the repository at this point in the history
  • Loading branch information
KobeW50 committed Jan 2, 2024
1 parent 4874b03 commit b596b2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ 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")
],
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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit b596b2c

Please sign in to comment.