fix(youtube): improve patching speed (#2514)
This commit is contained in:

committed by
GitHub

parent
e9fb849d5f
commit
77bb761b0b
@ -53,6 +53,7 @@ class SettingsPatch : BytecodePatch(
|
||||
} - 6
|
||||
|
||||
|
||||
// fixme: instead use Method.indexOfFirstConstantInstructionValue()
|
||||
val copyrightPolicyIndex = instructions.indexOfFirst {
|
||||
(it as? WideLiteralInstruction)?.wideLiteral == copyrightPolicyLabelId
|
||||
} + 2
|
||||
|
Reference in New Issue
Block a user