fix(youtube/remove-player-controls-background): use correct patch name and description
This commit is contained in:
parent
44366398eb
commit
8732a84422
|
@ -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.Compatibility
|
||||||
import app.revanced.patcher.annotation.Package
|
import app.revanced.patcher.annotation.Package
|
||||||
|
|
||||||
@Compatibility([Package("com.google.android.youtube", arrayOf("18.16.37", "18.19.35"))])
|
@Compatibility([Package("com.google.android.youtube", arrayOf("18.16.37", "18.19.35"))])
|
||||||
@Target(AnnotationTarget.CLASS)
|
@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.extensions.doRecursively
|
||||||
import app.revanced.patcher.annotation.Description
|
import app.revanced.patcher.annotation.Description
|
||||||
|
@ -9,15 +9,15 @@ import app.revanced.patcher.patch.PatchResult
|
||||||
import app.revanced.patcher.patch.PatchResultSuccess
|
import app.revanced.patcher.patch.PatchResultSuccess
|
||||||
import app.revanced.patcher.patch.ResourcePatch
|
import app.revanced.patcher.patch.ResourcePatch
|
||||||
import app.revanced.patcher.patch.annotations.Patch
|
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
|
import org.w3c.dom.Element
|
||||||
|
|
||||||
@Patch(false)
|
@Patch(false)
|
||||||
@Name("remove-player-button-background")
|
@Name("remove-player-controls-background")
|
||||||
@Description("Removes the background from the video player buttons.")
|
@Description("Removes the background from the video player controls.")
|
||||||
@PlayerButtonBackgroundCompatibility
|
@PlayerControlsBackgroundCompatibility
|
||||||
@Version("0.0.1")
|
@Version("0.0.1")
|
||||||
class PlayerButtonBackgroundPatch : ResourcePatch {
|
class PlayerControlsBackgroundPatch : ResourcePatch {
|
||||||
override fun execute(context: ResourceContext): PatchResult {
|
override fun execute(context: ResourceContext): PatchResult {
|
||||||
context.xmlEditor[RESOURCE_FILE_PATH].use { editor ->
|
context.xmlEditor[RESOURCE_FILE_PATH].use { editor ->
|
||||||
editor.file.doRecursively node@{ node ->
|
editor.file.doRecursively node@{ node ->
|
Loading…
Reference in a new issue