mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2024-11-10 09:07:46 +01:00
fix(video-ads): return empty ad list instead of null
This commit is contained in:
parent
04e49cf922
commit
f6c5027981
1 changed files with 3 additions and 2 deletions
|
@ -48,8 +48,9 @@ class VideoAdsPatch : BytecodePatch(
|
||||||
invoke-static { }, Lapp/revanced/integrations/patches/VideoAdsPatch;->shouldShowAds()Z
|
invoke-static { }, Lapp/revanced/integrations/patches/VideoAdsPatch;->shouldShowAds()Z
|
||||||
move-result v1
|
move-result v1
|
||||||
if-nez v1, :show_video_ads
|
if-nez v1, :show_video_ads
|
||||||
const/4 v1, 0x0
|
new-instance v0 Ljava/util/ArrayList;
|
||||||
return-object v1
|
invoke-direct { v0 }, Ljava/util/ArrayList;-><init>()V
|
||||||
|
return-object v0
|
||||||
""",
|
""",
|
||||||
listOf(ExternalLabel("show_video_ads", method.instruction(0)))
|
listOf(ExternalLabel("show_video_ads", method.instruction(0)))
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue