mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-18 15:27:19 +02:00
fix(YouTube Music/Flyout menu components): unable to patch due to incorrect format
This commit is contained in:
parent
1c9944861f
commit
96dc5cff5d
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user