mirror of
https://github.com/revanced/revanced-patches
synced 2024-12-03 23:02:53 +01:00
fix(sponsorblock): dynamically insert setSponsorBarRect
call (#644)
This commit is contained in:
parent
336a887b55
commit
998a249a23
@ -99,10 +99,14 @@ class SponsorBlockBytecodePatch : BytecodePatch(
|
|||||||
/*
|
/*
|
||||||
Get the instance of the seekbar rectangle
|
Get the instance of the seekbar rectangle
|
||||||
*/
|
*/
|
||||||
seekbarMethod.addInstruction(
|
for ((index, instruction) in seekbarMethodInstructions.withIndex()) {
|
||||||
1,
|
if (instruction.opcode != Opcode.MOVE_OBJECT_FROM16) continue
|
||||||
"invoke-static {v0}, Lapp/revanced/integrations/sponsorblock/PlayerController;->setSponsorBarRect(Ljava/lang/Object;)V"
|
seekbarMethod.addInstruction(
|
||||||
)
|
index + 1,
|
||||||
|
"invoke-static {v0}, Lapp/revanced/integrations/sponsorblock/PlayerController;->setSponsorBarRect(Ljava/lang/Object;)V"
|
||||||
|
)
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
for ((index, instruction) in seekbarMethodInstructions.withIndex()) {
|
for ((index, instruction) in seekbarMethodInstructions.withIndex()) {
|
||||||
if (instruction.opcode != Opcode.INVOKE_STATIC) continue
|
if (instruction.opcode != Opcode.INVOKE_STATIC) continue
|
||||||
|
Loading…
Reference in New Issue
Block a user