forked from ReVanced/revanced-patches-template
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(youtube/return-youtube-dislikes): fix temporarily frozen video af…
…ter opening a shorts (ReVanced#2126) Co-authored-by: oSumAtrIX <[email protected]>
- Loading branch information
1 parent
c3f6bbe
commit e0877e3
Showing
4 changed files
with
68 additions
and
64 deletions.
There are no files selected for viewing
23 changes: 0 additions & 23 deletions
23
.../youtube/layout/returnyoutubedislike/fingerprints/ShortsTextComponentParentFingerprint.kt
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
...ced/patches/youtube/layout/returnyoutubedislike/fingerprints/ShortsTextViewFingerprint.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package app.revanced.patches.youtube.layout.returnyoutubedislike.fingerprints | ||
|
||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint | ||
import org.jf.dexlib2.Opcode | ||
|
||
object ShortsTextViewFingerprint : MethodFingerprint( | ||
returnType = "V", | ||
parameters = listOf("L", "L"), | ||
opcodes = listOf( | ||
Opcode.INVOKE_SUPER, // first instruction of method | ||
Opcode.IF_NEZ, | ||
Opcode.RETURN_VOID, | ||
Opcode.INVOKE_VIRTUAL, | ||
Opcode.MOVE_RESULT_OBJECT, | ||
Opcode.CHECK_CAST, | ||
Opcode.SGET_OBJECT, // insertion point, must be after constructor call to parent class | ||
Opcode.INVOKE_VIRTUAL, | ||
Opcode.MOVE_RESULT, | ||
Opcode.CONST_4, | ||
Opcode.IF_EQZ, | ||
Opcode.CONST_4, | ||
Opcode.IF_EQ, | ||
Opcode.CONST_4, | ||
Opcode.IF_EQ, | ||
Opcode.RETURN_VOID, | ||
Opcode.IGET_OBJECT, // TextView field | ||
Opcode.CHECK_CAST, | ||
Opcode.IGET_BOOLEAN, // boolean field | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters