mirror of
https://github.com/revanced/revanced-patches
synced 2024-09-03 13:06:11 +02:00
fix: accidentally removed code in refactor
This commit is contained in:
parent
32146506f1
commit
0077e26d23
@ -62,7 +62,7 @@ class VideoAdsPatch : Patch(
|
|||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
override fun execute(patcherData: PatcherData): PatchResult {
|
override fun execute(patcherData: PatcherData): PatchResult {
|
||||||
val result = signatures.first().result!!
|
var result = signatures.first().result!!
|
||||||
|
|
||||||
val responsibleMethodSignature = MethodSignature(
|
val responsibleMethodSignature = MethodSignature(
|
||||||
MethodSignatureMetadata(
|
MethodSignatureMetadata(
|
||||||
@ -82,7 +82,7 @@ class VideoAdsPatch : Patch(
|
|||||||
null
|
null
|
||||||
)
|
)
|
||||||
|
|
||||||
result.findParentMethod(
|
result = result.findParentMethod(
|
||||||
responsibleMethodSignature
|
responsibleMethodSignature
|
||||||
) ?: return PatchResultError(
|
) ?: return PatchResultError(
|
||||||
"Could not find parent method with signature ${responsibleMethodSignature.metadata.name}"
|
"Could not find parent method with signature ${responsibleMethodSignature.metadata.name}"
|
||||||
|
@ -124,7 +124,7 @@ class EnableSeekbarTappingPatch : Patch(
|
|||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
override fun execute(patcherData: PatcherData): PatchResult {
|
override fun execute(patcherData: PatcherData): PatchResult {
|
||||||
val result = signatures.first().result!!
|
var result = signatures.first().result!!
|
||||||
|
|
||||||
val tapSeekMethods = mutableMapOf<String, Method>()
|
val tapSeekMethods = mutableMapOf<String, Method>()
|
||||||
|
|
||||||
@ -149,7 +149,7 @@ class EnableSeekbarTappingPatch : Patch(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// replace map because we dont need the upper one anymore
|
// replace map because we dont need the upper one anymore
|
||||||
signatures.last().result!!
|
result = signatures.last().result!!
|
||||||
|
|
||||||
val implementation = result.method.implementation!!
|
val implementation = result.method.implementation!!
|
||||||
|
|
||||||
|
@ -72,9 +72,9 @@ class OldQualityLayoutPatch : Patch(
|
|||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
override fun execute(patcherData: PatcherData): PatchResult {
|
override fun execute(patcherData: PatcherData): PatchResult {
|
||||||
val result = signatures.first().result!!
|
var result = signatures.first().result!!
|
||||||
|
|
||||||
result.findParentMethod(
|
result = result.findParentMethod(
|
||||||
MethodSignature(
|
MethodSignature(
|
||||||
MethodSignatureMetadata(
|
MethodSignatureMetadata(
|
||||||
"old-quality-method-signature",
|
"old-quality-method-signature",
|
||||||
|
Loading…
Reference in New Issue
Block a user