Skip to content

Commit

Permalink
fix(YouTube Music/Hide ads): Hide fullscreen ads setting also close…
Browse files Browse the repository at this point in the history
  • Loading branch information
inotia00 committed May 10, 2024
1 parent 120e1d2 commit 0156128
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint

internal object ShowDialogCommandFingerprint : LiteralValueFingerprint(
returnType = "V",
parameters = listOf("[B", "L"),
literalSupplier = { SlidingDialogAnimation }
)
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint

internal object ShowDialogCommandFingerprint : LiteralValueFingerprint(
returnType = "V",
parameters = listOf("[B", "L"),
literalSupplier = { SlidingDialogAnimation }
)

0 comments on commit 0156128

Please sign in to comment.