fix: twitter

This commit is contained in:
drobotk 2026-02-24 23:22:56 +01:00
parent 50f80921eb
commit a96762fcad
No known key found for this signature in database
GPG key ID: 4B532DAB8340742C

View file

@ -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))
}