Skip to content

Commit d1313e3

Browse files
committed
fix(Spotify - Unlock Premium): Fix hiding context menu ads on newest versions by simplifying fingerprint (#5318)
1 parent 1133800 commit d1313e3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

patches/src/main/kotlin/app/revanced/patches/spotify/misc/Fingerprints.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ internal val oldContextMenuViewModelAddItemFingerprint = fingerprint {
5757

5858
internal val contextMenuViewModelConstructorFingerprint = fingerprint {
5959
accessFlags(AccessFlags.PUBLIC, AccessFlags.CONSTRUCTOR)
60-
parameters("L", "Z", "Ljava/util/List;")
6160
}
6261

6362
/**
@@ -67,7 +66,7 @@ internal val browsePodcastsContextMenuItemClassFingerprint = fingerprint {
6766
strings("browse_podcast_item", "ui_navigate")
6867
}
6968

70-
internal const val CONTEXT_MENU_ITEM_PLACEHOLDER_CLASS_NAME = "Lapp/revanced/ContextMenuItemPlaceholder;"
69+
internal const val CONTEXT_MENU_ITEM_CLASS_DESCRIPTOR_PLACEHOLDER = "Lapp/revanced/ContextMenuItemPlaceholder;"
7170
internal val extensionFilterContextMenuItemsFingerprint = fingerprint {
7271
accessFlags(AccessFlags.PUBLIC, AccessFlags.STATIC)
7372
returns("Ljava/util/List;")
@@ -134,7 +133,7 @@ internal val homeStructureGetSectionsFingerprint =
134133
structureGetSectionsFingerprint("homeapi/proto/HomeStructure;")
135134

136135
internal val browseSectionFingerprint = fingerprint {
137-
custom { _, classDef -> classDef.endsWith("browsita/v1/resolved/Section;") }
136+
custom { _, classDef-> classDef.endsWith("browsita/v1/resolved/Section;") }
138137
}
139138

140139
internal val browseStructureGetSectionsFingerprint =

0 commit comments

Comments
 (0)