fix(reddit/open-links-externally): exceptions occur in some manufacturers ROM

This commit is contained in:
inotia00 2023-07-23 15:13:20 +09:00
parent ebdc38aee3
commit dea655e3b6

View File

@ -35,10 +35,9 @@ class OpenLinksExternallyPatch : BytecodePatch(
addInstructionsWithLabels(
insertIndex, """
invoke-static {}, $INTEGRATIONS_METHOD_DESCRIPTOR->openLinksExternally()Z
invoke-static {p1, p2}, $INTEGRATIONS_METHOD_DESCRIPTOR->openLinksExternally(Landroid/app/Activity;Landroid/net/Uri;)Z
move-result v0
if-eqz v0, :dismiss
invoke-static {p1, p2}, $INTEGRATIONS_METHOD_DESCRIPTOR->openLinksExternally(Landroid/app/Activity;Landroid/net/Uri;)V
if-eqz v0, :dismiss
return-void
""", ExternalLabel("dismiss", getInstruction(insertIndex))
)