mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 05:07:41 +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
|
||||
"""
|
||||
|
||||
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 {
|
||||
val index = indexOfFirstInstructionOrThrow {
|
||||
getReference<MethodReference>()?.returnType == PLAYBACK_START_DESCRIPTOR_CLASS_DESCRIPTOR
|
||||
@ -906,18 +914,8 @@ val shortsComponentPatch = bytecodePatch(
|
||||
extensionInstructions(playbackStartRegister, freeRegister)
|
||||
)
|
||||
}
|
||||
|
||||
return@execute
|
||||
}
|
||||
|
||||
shortsPlaybackIntentFingerprint.methodOrThrow().addInstructionsWithLabels(
|
||||
0,
|
||||
"""
|
||||
move-object/from16 v0, p1
|
||||
${extensionInstructions(0, 1)}
|
||||
"""
|
||||
)
|
||||
|
||||
// endregion
|
||||
|
||||
addLithoFilter(BUTTON_FILTER_CLASS_DESCRIPTOR)
|
||||
|
Reference in New Issue
Block a user