fix(YouTube Music/Flyout menu components): unable to patch due to incorrect format

This commit is contained in:
inotia00 2024-09-27 19:00:43 +09:00
parent 1c9944861f
commit 96dc5cff5d

View File

@ -104,13 +104,11 @@ object FlyoutMenuComponentsPatch : BaseBytecodePatch(
val onCheckedChangedListenerDefiningClass =
(onCheckedChangedListenerReference as MethodReference).definingClass
val onCheckedChangedMethod =
context.findMethodOrThrow(onCheckedChangedListenerDefiningClass) {
name == "onCheckedChanged"
}
}.apply {
val onCheckedChangedWalkerIndex =
onCheckedChangedMethod.indexOfFirstInstructionOrThrow {
indexOfFirstInstructionOrThrow {
val reference = getReference<MethodReference>()
opcode == Opcode.INVOKE_VIRTUAL
&& reference?.returnType == "V"
@ -132,6 +130,7 @@ object FlyoutMenuComponentsPatch : BaseBytecodePatch(
}
}
}
}
trimSilenceIncluded = true
}