mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-13 05:37:40 +02:00
fix(YouTube - Shorts components): Settings not added in 19.16.39
https://github.com/inotia00/ReVanced_Extended/issues/2704
This commit is contained in:
@ -893,7 +893,15 @@ val shortsComponentPatch = bytecodePatch(
|
|||||||
nop
|
nop
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if (!is_19_25_or_greater) {
|
if (is_19_25_or_greater) {
|
||||||
|
shortsPlaybackIntentFingerprint.methodOrThrow().addInstructionsWithLabels(
|
||||||
|
0,
|
||||||
|
"""
|
||||||
|
move-object/from16 v0, p1
|
||||||
|
${extensionInstructions(0, 1)}
|
||||||
|
"""
|
||||||
|
)
|
||||||
|
} else {
|
||||||
shortsPlaybackIntentLegacyFingerprint.methodOrThrow().apply {
|
shortsPlaybackIntentLegacyFingerprint.methodOrThrow().apply {
|
||||||
val index = indexOfFirstInstructionOrThrow {
|
val index = indexOfFirstInstructionOrThrow {
|
||||||
getReference<MethodReference>()?.returnType == PLAYBACK_START_DESCRIPTOR_CLASS_DESCRIPTOR
|
getReference<MethodReference>()?.returnType == PLAYBACK_START_DESCRIPTOR_CLASS_DESCRIPTOR
|
||||||
@ -906,18 +914,8 @@ val shortsComponentPatch = bytecodePatch(
|
|||||||
extensionInstructions(playbackStartRegister, freeRegister)
|
extensionInstructions(playbackStartRegister, freeRegister)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
return@execute
|
|
||||||
}
|
}
|
||||||
|
|
||||||
shortsPlaybackIntentFingerprint.methodOrThrow().addInstructionsWithLabels(
|
|
||||||
0,
|
|
||||||
"""
|
|
||||||
move-object/from16 v0, p1
|
|
||||||
${extensionInstructions(0, 1)}
|
|
||||||
"""
|
|
||||||
)
|
|
||||||
|
|
||||||
// endregion
|
// endregion
|
||||||
|
|
||||||
addLithoFilter(BUTTON_FILTER_CLASS_DESCRIPTOR)
|
addLithoFilter(BUTTON_FILTER_CLASS_DESCRIPTOR)
|
||||||
|
Reference in New Issue
Block a user