mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-03 16:14:28 +02:00
fix(YouTube Music/Hide ads): Hide fullscreen ads
setting also closes non-ad dialogs https://github.com/inotia00/ReVanced_Extended/issues/1971
This commit is contained in:
parent
120e1d223d
commit
01561285c6
@ -96,7 +96,8 @@ object AdsPatch : BaseBytecodePatch(
|
||||
addInstructionsWithLabels(
|
||||
0,
|
||||
"""
|
||||
invoke-static {}, $FULLSCREEN_ADS_CLASS_DESCRIPTOR->hideFullscreenAds()Z
|
||||
move-object v0, p2
|
||||
invoke-static {v0}, $FULLSCREEN_ADS_CLASS_DESCRIPTOR->hideFullscreenAds(Ljava/lang/Object;)Z
|
||||
move-result v0
|
||||
if-eqz v0, :show
|
||||
return-void
|
||||
|
@ -5,5 +5,6 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
|
||||
internal object ShowDialogCommandFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
parameters = listOf("[B", "L"),
|
||||
literalSupplier = { SlidingDialogAnimation }
|
||||
)
|
@ -57,7 +57,8 @@ object AdsBytecodePatch : BytecodePatch(
|
||||
addInstructionsWithLabels(
|
||||
0,
|
||||
"""
|
||||
invoke-static {}, $ADS_CLASS_DESCRIPTOR->hideFullscreenAds()Z
|
||||
move-object v0, p2
|
||||
invoke-static {v0}, $ADS_CLASS_DESCRIPTOR->hideFullscreenAds(Ljava/lang/Object;)Z
|
||||
move-result v0
|
||||
if-eqz v0, :show
|
||||
return-void
|
||||
|
@ -5,5 +5,6 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
|
||||
internal object ShowDialogCommandFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
parameters = listOf("[B", "L"),
|
||||
literalSupplier = { SlidingDialogAnimation }
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user