fix(video-ads): return empty ad list instead of null

This commit is contained in:
oSumAtrIX 2022-10-10 13:49:43 +02:00
parent 7038720fd9
commit b86be41784

View file

@ -48,8 +48,9 @@ class VideoAdsPatch : BytecodePatch(
invoke-static { }, Lapp/revanced/integrations/patches/VideoAdsPatch;->shouldShowAds()Z
move-result v1
if-nez v1, :show_video_ads
const/4 v1, 0x0
return-object v1
new-instance v0 Ljava/util/ArrayList;
invoke-direct { v0 }, Ljava/util/ArrayList;-><init>()V
return-object v0
""",
listOf(ExternalLabel("show_video_ads", method.instruction(0)))
)