Skip to content

Commit 5189122

Browse files
authored
fix(Twitter - Unlock downloads): Make it work with latest versions (#3782)
1 parent 5150a15 commit 5189122

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/kotlin/app/revanced/patches/twitter/interaction/downloads/fingerprints/BuildMediaOptionsSheetFingerprint.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ internal object BuildMediaOptionsSheetFingerprint : MethodFingerprint(
1010
Opcode.GOTO_16,
1111
Opcode.NEW_INSTANCE,
1212
),
13-
strings = listOf("resources.getString(R.string.post_video)"),
13+
strings = listOf("mediaEntity", "media_options_sheet"),
1414
)

src/main/kotlin/app/revanced/patches/twitter/interaction/downloads/fingerprints/ShowDownloadVideoUpsellBottomSheetFingerprint.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ import com.android.tools.smali.dexlib2.Opcode
55

66
internal object ShowDownloadVideoUpsellBottomSheetFingerprint : MethodFingerprint(
77
returnType = "Z",
8-
strings = listOf("variantToDownload.url"),
8+
strings = listOf("mediaEntity", "url"),
99
opcodes = listOf(Opcode.IF_EQZ)
1010
)

0 commit comments

Comments
 (0)