refactor: make patches compatible with breaking changes of the patcher

also commented HideSuggestionsPatch.kt so warnings suppressed
This commit is contained in:
Lucaskyy
2022-04-14 12:11:24 +02:00
parent 2d3d72009e
commit 0acdf89ae9
8 changed files with 28 additions and 36 deletions

View File

@ -1,14 +1,14 @@
package app.revanced.patches.layout
import app.revanced.patcher.PatcherData
import app.revanced.patcher.extensions.AccessFlagExtensions.Companion.or
import app.revanced.patcher.extensions.or
import app.revanced.patcher.extensions.addInstructions
import app.revanced.patcher.patch.*
import app.revanced.patcher.signature.MethodMetadata
import app.revanced.patcher.signature.MethodSignature
import app.revanced.patcher.signature.MethodSignatureMetadata
import app.revanced.patcher.signature.PatternScanMethod
import app.revanced.patcher.smali.asInstructions
import app.revanced.patcher.smali.toInstructions
import org.jf.dexlib2.AccessFlags
import org.jf.dexlib2.Opcode
import org.jf.dexlib2.builder.instruction.BuilderInstruction21t
@ -110,7 +110,7 @@ class OldQualityLayoutPatch : Patch(
"""
invoke-static { }, Lfi/razerman/youtube/XGlobals;->useOldStyleQualitySettings()Z
move-result v0
""".trimIndent().asInstructions()
""".trimIndent().toInstructions()
)
return PatchResultSuccess()