Skip to content

Commit

Permalink
fix(youtube/remove-player-controls-background): use correct patch nam…
Browse files Browse the repository at this point in the history
…e and description
  • Loading branch information
oSumAtrIX committed May 24, 2023
1 parent 4436639 commit 8732a84
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
@@ -1,7 +1,7 @@
package app.revanced.patches.youtube.layout.buttons.player.background.annotations
package app.revanced.patches.youtube.layout.player.background.annotations
import app.revanced.patcher.annotation.Compatibility
import app.revanced.patcher.annotation.Package

@Compatibility([Package("com.google.android.youtube", arrayOf("18.16.37", "18.19.35"))])
@Target(AnnotationTarget.CLASS)
internal annotation class PlayerButtonBackgroundCompatibility
internal annotation class PlayerControlsBackgroundCompatibility
@@ -1,4 +1,4 @@
package app.revanced.patches.youtube.layout.buttons.player.background.patch
package app.revanced.patches.youtube.layout.player.background.patch

import app.revanced.extensions.doRecursively
import app.revanced.patcher.annotation.Description
Expand All @@ -9,15 +9,15 @@ import app.revanced.patcher.patch.PatchResult
import app.revanced.patcher.patch.PatchResultSuccess
import app.revanced.patcher.patch.ResourcePatch
import app.revanced.patcher.patch.annotations.Patch
import app.revanced.patches.youtube.layout.buttons.player.background.annotations.PlayerButtonBackgroundCompatibility
import app.revanced.patches.youtube.layout.player.background.annotations.PlayerControlsBackgroundCompatibility
import org.w3c.dom.Element

@Patch(false)
@Name("remove-player-button-background")
@Description("Removes the background from the video player buttons.")
@PlayerButtonBackgroundCompatibility
@Name("remove-player-controls-background")
@Description("Removes the background from the video player controls.")
@PlayerControlsBackgroundCompatibility
@Version("0.0.1")
class PlayerButtonBackgroundPatch : ResourcePatch {
class PlayerControlsBackgroundPatch : ResourcePatch {
override fun execute(context: ResourceContext): PatchResult {
context.xmlEditor[RESOURCE_FILE_PATH].use { editor ->
editor.file.doRecursively node@{ node ->
Expand Down

0 comments on commit 8732a84

Please sign in to comment.