refactor(youtube/general-ads): abstract integrations code

This commit is contained in:
oSumAtrIX 2022-10-03 13:38:07 +02:00
parent 584803aa90
commit 4447244108
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -357,7 +357,7 @@ class GeneralBytecodeAdsPatch : BytecodePatch() {
lithoMethod.addInstructions(
insertIndex, // right after setting the component.pathBuilder field,
"""
invoke-static {v5, v2}, Lapp/revanced/integrations/patches/GeneralBytecodeAdsPatch;->isAdComponent(Ljava/lang/StringBuilder;Ljava/lang/String;)Z
invoke-static {v5, v2}, Lapp/revanced/integrations/patches/LithoFilterPatch;->filter(Ljava/lang/StringBuilder;Ljava/lang/String;)Z
move-result v$clobberedRegister
if-eqz v$clobberedRegister, :not_an_ad
move-object/from16 v2, p1