Skip to content

Commit

Permalink
fix(YouTube Music - Player components): `Restore old comments popup p…
Browse files Browse the repository at this point in the history
…anels` not working on YouTube Music 7.25.53
  • Loading branch information
inotia00 authored and anddea committed Jan 10, 2025
1 parent 097845b commit 2ce0bc4
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import app.revanced.patches.music.utils.resourceid.miniPlayerViewPager
import app.revanced.patches.music.utils.resourceid.playerViewPager
import app.revanced.patches.music.utils.resourceid.remixGenericButtonSize
import app.revanced.patches.music.utils.resourceid.tapBloomView
import app.revanced.util.containsLiteralInstruction
import app.revanced.util.fingerprint.legacyFingerprint
import app.revanced.util.getReference
import app.revanced.util.indexOfFirstInstruction
Expand Down Expand Up @@ -50,10 +51,11 @@ internal val engagementPanelHeightFingerprint = legacyFingerprint(
),
parameters = emptyList(),
customFingerprint = { method, _ ->
method.indexOfFirstInstruction {
opcode == Opcode.INVOKE_VIRTUAL &&
getReference<MethodReference>()?.name == "booleanValue"
} >= 0
method.containsLiteralInstruction(1) &&
method.indexOfFirstInstruction {
opcode == Opcode.INVOKE_VIRTUAL &&
getReference<MethodReference>()?.name == "booleanValue"
} >= 0
}
)

Expand Down

0 comments on commit 2ce0bc4

Please sign in to comment.