fix(YouTube - Downloads): Use new task context (#2841)

This commit is contained in:
LisoUseInAIKyrios
2024-03-08 09:09:15 +04:00
committed by GitHub
parent f24adf753e
commit 6d88cb49ec
14 changed files with 142 additions and 58 deletions

View File

@ -64,8 +64,8 @@ abstract class BaseIntegrationsPatch(
method.addInstruction(
0,
"sput-object v$contextRegister, " +
"$integrationsDescriptor->context:Landroid/content/Context;",
"invoke-static/range { v$contextRegister .. v$contextRegister }, " +
"$integrationsDescriptor->setContext(Landroid/content/Context;)V",
)
} ?: throw PatchException("Could not find hook target fingerprint.")
}