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 97e1b65900
commit f073388b9a
8 changed files with 28 additions and 36 deletions
@@ -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()