fix(YouTube - Shorts components): Settings not added in 19.16.39 https://github.com/inotia00/ReVanced_Extended/issues/2704

This commit is contained in:
inotia00
2025-01-20 02:39:31 +09:00
parent c0500bef7b
commit cd110acc9d

View File

@ -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)