Skip to content

Commit

Permalink
GrindrPlus: Fix profile tag cascade
Browse files Browse the repository at this point in the history
  • Loading branch information
R0rt1z2 committed Dec 23, 2024
1 parent 17b6d29 commit 52bc2a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/src/main/java/com/grindrplus/hooks/UnlimitedProfiles.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class UnlimitedProfiles : Hook(
"com.grindrapp.android.persistence.model.serverdrivencascade.ServerDrivenCascadeCacheState"
private val serverDrivenCascadeCachedProfile =
"com.grindrapp.android.persistence.model.serverdrivencascade.ServerDrivenCascadeCachedProfile"
private val profileTagCascadeFragment = "com.grindrapp.android.ui.tagsearch.ProfileTagCascadeFragment"

override fun init() {
findClass(serverDrivenCascadeCachedState)
Expand All @@ -27,6 +28,11 @@ class UnlimitedProfiles : Hook(
param.setResult(items)
}

findClass(profileTagCascadeFragment)
.hook("L", HookStage.BEFORE) { param ->
param.setResult(true)
}

findClass(serverDrivenCascadeCachedProfile)
.hook("getUpsellType", HookStage.BEFORE) { param ->
param.setResult(null)
Expand Down

0 comments on commit 52bc2a7

Please sign in to comment.