forked from ReVanced/revanced-patches-template
-
Notifications
You must be signed in to change notification settings - Fork 1
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-dislike): render dislikes when scrolling i…
…nto the screen (ReVanced#1873) Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
- Loading branch information
1 parent
7d30541
commit 85675b8
Showing
6 changed files
with
132 additions
and
75 deletions.
There are no files selected for viewing
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
34 changes: 34 additions & 0 deletions
34
...utube/layout/returnyoutubedislike/fingerprints/TextComponentAtomicReferenceFingerprint.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,34 @@ | ||
package app.revanced.patches.youtube.layout.returnyoutubedislike.fingerprints | ||
|
||
import app.revanced.patcher.extensions.or | ||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint | ||
import org.jf.dexlib2.AccessFlags | ||
import org.jf.dexlib2.Opcode | ||
|
||
/** | ||
* Resolves against the same method that [TextComponentContextFingerprint] resolves to. | ||
*/ | ||
object TextComponentAtomicReferenceFingerprint : MethodFingerprint( | ||
returnType = "L", | ||
access = AccessFlags.PROTECTED or AccessFlags.FINAL, | ||
parameters = listOf("L"), | ||
opcodes = listOf( | ||
Opcode.MOVE_OBJECT, // available unused register | ||
Opcode.MOVE_OBJECT_FROM16, | ||
Opcode.MOVE_OBJECT_FROM16, | ||
Opcode.MOVE_FROM16, | ||
Opcode.INVOKE_VIRTUAL, // CharSequence atomic reference | ||
Opcode.MOVE_RESULT_OBJECT, | ||
Opcode.CHECK_CAST, | ||
Opcode.MOVE_OBJECT, // CharSequence reference, and control flow label. Insert code here. | ||
Opcode.INVOKE_VIRTUAL_RANGE, | ||
Opcode.MOVE_RESULT, | ||
Opcode.IF_EQZ, | ||
Opcode.INVOKE_VIRTUAL_RANGE, | ||
Opcode.MOVE_RESULT_OBJECT, | ||
Opcode.GOTO, | ||
Opcode.CONST_4, | ||
Opcode.INVOKE_VIRTUAL_RANGE, | ||
Opcode.MOVE_RESULT_OBJECT, | ||
) | ||
) |
24 changes: 24 additions & 0 deletions
24
...tches/youtube/layout/returnyoutubedislike/fingerprints/TextComponentContextFingerprint.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,24 @@ | ||
package app.revanced.patches.youtube.layout.returnyoutubedislike.fingerprints | ||
|
||
import app.revanced.patcher.extensions.or | ||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint | ||
import org.jf.dexlib2.AccessFlags | ||
import org.jf.dexlib2.Opcode | ||
|
||
/** | ||
* Resolves against the same method that [TextComponentContextFingerprint] resolves to. | ||
*/ | ||
object TextComponentContextFingerprint : MethodFingerprint( | ||
returnType = "L", | ||
access = AccessFlags.PROTECTED or AccessFlags.FINAL, | ||
parameters = listOf("L"), | ||
opcodes = listOf( | ||
Opcode.IGET_OBJECT, // conversion context field name | ||
Opcode.IGET_OBJECT, | ||
Opcode.IGET_OBJECT, | ||
Opcode.IGET_BOOLEAN, | ||
Opcode.IGET, | ||
Opcode.IGET, | ||
Opcode.IGET, | ||
) | ||
) |
14 changes: 0 additions & 14 deletions
14
...nced/patches/youtube/layout/returnyoutubedislike/fingerprints/TextReferenceFingerprint.kt
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...patches/youtube/layout/returnyoutubedislike/fingerprints/TextReferenceParamFingerprint.kt
This file was deleted.
Oops, something went wrong.
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