generated from ReVanced/revanced-patches-template
-
-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(YouTube - ReturnYouTubeDislike): Improve layout padding (#3291)
- Loading branch information
1 parent
4704943
commit 630b067
Showing
3 changed files
with
62 additions
and
1 deletion.
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
23 changes: 23 additions & 0 deletions
23
...s/youtube/layout/returnyoutubedislike/fingerprints/RollingNumberMeasureTextFingerprint.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,23 @@ | ||
package app.revanced.patches.youtube.layout.returnyoutubedislike.fingerprints | ||
|
||
import app.revanced.patcher.extensions.or | ||
import app.revanced.patcher.fingerprint.MethodFingerprint | ||
import com.android.tools.smali.dexlib2.AccessFlags | ||
import com.android.tools.smali.dexlib2.Opcode | ||
|
||
/** | ||
* Resolves to class found in [RollingNumberMeasureTextParentFingerprint]. | ||
*/ | ||
object RollingNumberMeasureTextFingerprint : MethodFingerprint( | ||
returnType = "F", | ||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL, | ||
parameters = listOf("Ljava/lang/String;"), | ||
opcodes = listOf( | ||
Opcode.INVOKE_VIRTUAL, | ||
Opcode.MOVE_RESULT, | ||
Opcode.ADD_FLOAT_2ADDR, | ||
Opcode.ADD_INT_LIT8, | ||
Opcode.GOTO, | ||
Opcode.RETURN | ||
) | ||
) |
12 changes: 12 additions & 0 deletions
12
...ube/layout/returnyoutubedislike/fingerprints/RollingNumberMeasureTextParentFingerprint.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,12 @@ | ||
package app.revanced.patches.youtube.layout.returnyoutubedislike.fingerprints | ||
|
||
import app.revanced.patcher.extensions.or | ||
import app.revanced.patcher.fingerprint.MethodFingerprint | ||
import com.android.tools.smali.dexlib2.AccessFlags | ||
|
||
object RollingNumberMeasureTextParentFingerprint : MethodFingerprint( | ||
returnType = "Ljava/lang/String;", | ||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL, | ||
parameters = listOf(), | ||
strings = listOf("RollingNumberFontProperties{paint=") | ||
) |