diff --git a/patches/src/main/kotlin/app/revanced/patches/twitter/interaction/downloads/Fingerprints.kt b/patches/src/main/kotlin/app/revanced/patches/twitter/interaction/downloads/Fingerprints.kt index a8fdc19d77..52afcfa187 100644 --- a/patches/src/main/kotlin/app/revanced/patches/twitter/interaction/downloads/Fingerprints.kt +++ b/patches/src/main/kotlin/app/revanced/patches/twitter/interaction/downloads/Fingerprints.kt @@ -1,10 +1,7 @@ package app.revanced.patches.twitter.interaction.downloads -import app.revanced.patcher.accessFlags -import app.revanced.patcher.composingFirstMethod -import app.revanced.patcher.opcodes +import app.revanced.patcher.* import app.revanced.patcher.patch.BytecodePatchContext -import app.revanced.patcher.returnType import com.android.tools.smali.dexlib2.AccessFlags import com.android.tools.smali.dexlib2.Opcode @@ -21,7 +18,8 @@ internal val BytecodePatchContext.constructMediaOptionsSheetMethodMatch by compo accessFlags(AccessFlags.PUBLIC, AccessFlags.CONSTRUCTOR) } -internal val BytecodePatchContext.showDownloadVideoUpsellBottomSheetMethodMatch by composingFirstMethod("mediaEntity", "url") { +internal val BytecodePatchContext.showDownloadVideoUpsellBottomSheetMethodMatch by composingFirstMethod("mediaEntity") { returnType("Z") opcodes(Opcode.IF_EQZ) + instructions("url"(String::contains)) }