fix(youtube): improve patching speed (#2514)
This commit is contained in:
committed by
GitHub
parent
23537557b5
commit
38dda9346b
@@ -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