mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-06 09:34:37 +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(
|
addInstructionsWithLabels(
|
||||||
0,
|
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
|
move-result v0
|
||||||
if-eqz v0, :show
|
if-eqz v0, :show
|
||||||
return-void
|
return-void
|
||||||
|
@ -5,5 +5,6 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
|||||||
|
|
||||||
internal object ShowDialogCommandFingerprint : LiteralValueFingerprint(
|
internal object ShowDialogCommandFingerprint : LiteralValueFingerprint(
|
||||||
returnType = "V",
|
returnType = "V",
|
||||||
|
parameters = listOf("[B", "L"),
|
||||||
literalSupplier = { SlidingDialogAnimation }
|
literalSupplier = { SlidingDialogAnimation }
|
||||||
)
|
)
|
@ -57,7 +57,8 @@ object AdsBytecodePatch : BytecodePatch(
|
|||||||
addInstructionsWithLabels(
|
addInstructionsWithLabels(
|
||||||
0,
|
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
|
move-result v0
|
||||||
if-eqz v0, :show
|
if-eqz v0, :show
|
||||||
return-void
|
return-void
|
||||||
|
@ -5,5 +5,6 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
|||||||
|
|
||||||
internal object ShowDialogCommandFingerprint : LiteralValueFingerprint(
|
internal object ShowDialogCommandFingerprint : LiteralValueFingerprint(
|
||||||
returnType = "V",
|
returnType = "V",
|
||||||
|
parameters = listOf("[B", "L"),
|
||||||
literalSupplier = { SlidingDialogAnimation }
|
literalSupplier = { SlidingDialogAnimation }
|
||||||
)
|
)
|
Loading…
x
Reference in New Issue
Block a user