feat: remove partially complete patch

This commit is contained in:
oSumAtrIX 2022-10-26 06:56:18 +02:00
parent 049e3a2c28
commit d212e19c32
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
2 changed files with 0 additions and 41 deletions

View File

@ -1,9 +0,0 @@
package app.revanced.patches.metanav.scaling.annotations
import app.revanced.patcher.annotation.Compatibility
import app.revanced.patcher.annotation.Package
@Compatibility([Package("com.metanav", arrayOf("0.1.0"))])
@Target(AnnotationTarget.CLASS)
@Retention(AnnotationRetention.RUNTIME)
internal annotation class FixScalingCompatibility

View File

@ -1,32 +0,0 @@
package app.revanced.patches.metanav.scaling.patch
import app.revanced.patcher.annotation.Description
import app.revanced.patcher.annotation.Name
import app.revanced.patcher.annotation.Version
import app.revanced.patcher.data.ResourceContext
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.metanav.scaling.annotations.FixScalingCompatibility
import org.w3c.dom.Element
@Patch
@Name("fix-scaling")
@Description("Scales the content properly.")
@FixScalingCompatibility
@Version("0.0.1")
class FixScalingPatch : ResourcePatch {
override fun execute(context: ResourceContext): PatchResult {
context.xmlEditor["assets/startScreenCanvas.html"].use { editor ->
val svgNode = editor
.file
.getElementsByTagName("svg")
.item(0) as Element
svgNode.setAttribute("height", "750")
}
return PatchResultSuccess()
}
}