Skip to content

Commit 6a44b4e

Browse files
committed
Disable addExtraProfileFields()
ProfileFieldsView.setProfile(Profile) is gone in Grindr version 8.16.0. Disable extra profile fields as a temporary workaround.
1 parent 0c8aea4 commit 6a44b4e

3 files changed

Lines changed: 11 additions & 9 deletions

File tree

app/src/main/java/com/eljaviluki/grindrplus/Hooker.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Hooker : IXposedHookLoadPackage {
3939
Hooks.hookFeatureGranting()
4040
Hooks.allowScreenshotsHook()
4141
Hooks.unlimitedExpiringPhotos()
42-
Hooks.addExtraProfileFields()
42+
//Hooks.addExtraProfileFields()
4343
Hooks.hookUserSessionImpl()
4444
Hooks.allowMockProvider()
4545
Hooks.allowVideocallsOnEmptyChats()

app/src/main/java/com/eljaviluki/grindrplus/Hooks.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ object Hooks {
4141
* - Profile ID
4242
* - Last seen (exact date and time)
4343
*/
44-
fun addExtraProfileFields() {
44+
fun addExtraProfileFields_DISABLED() {
4545
val class_ProfileFieldsView = findClass(
4646
GApp.ui.profileV2.ProfileFieldsView,
4747
Hooker.pkgParam.classLoader
@@ -53,7 +53,7 @@ object Hooks {
5353
)
5454

5555
val class_ExtendedProfileFieldView = findClass(
56-
GApp.view.ExtendedProfileFieldView,
56+
null, //GApp.view.ExtendedProfileFieldView,
5757
Hooker.pkgParam.classLoader
5858
)
5959

@@ -64,7 +64,7 @@ object Hooks {
6464

6565
findAndHookMethod(
6666
class_ProfileFieldsView,
67-
GApp.ui.profileV2.ProfileFieldsView_.setProfile,
67+
null, //GApp.ui.profileV2.ProfileFieldsView_.setProfile,
6868
class_Profile,
6969
object : XC_MethodHook() {
7070
var fieldsViewInstance: Any? = null
@@ -88,7 +88,7 @@ object Hooks {
8888

8989
val valueColorId = getStaticIntField(
9090
class_R_color,
91-
GApp.R.color_.grindr_pure_white
91+
null, //GApp.R.color_.grindr_pure_white
9292
) //R.color.grindr_pure_white
9393

9494
override fun afterHookedMethod(param: MethodHookParam) {
@@ -131,14 +131,14 @@ object Hooks {
131131

132132
callMethod(
133133
extendedProfileFieldView,
134-
GApp.view.ExtendedProfileFieldView_.setLabel,
134+
null, //GApp.view.ExtendedProfileFieldView_.setLabel,
135135
label,
136136
labelColorRgb
137137
)
138138

139139
callMethod(
140140
extendedProfileFieldView,
141-
GApp.view.ExtendedProfileFieldView_.setValue,
141+
null, //GApp.view.ExtendedProfileFieldView_.setValue,
142142
value,
143143
valueColorId
144144
)

app/src/main/java/com/eljaviluki/grindrplus/Obfuscation.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ object Obfuscation {
7272
const val color = "$_R\$d"
7373
object color_ {
7474
const val grindr_gold_star_gay = "w"
75-
const val grindr_pure_white = "L"
75+
//const val grindr_pure_white = "L" // seems gone
7676
}
7777
}
7878

@@ -100,7 +100,7 @@ object Obfuscation {
100100

101101
const val ProfileFieldsView = "$_profileV2.ProfileFieldsView"
102102
object ProfileFieldsView_ {
103-
const val setProfile = "setProfile"
103+
//const val setProfile = "setProfile" // gone
104104
}
105105
}
106106
}
@@ -117,11 +117,13 @@ object Obfuscation {
117117
object view {
118118
private const val _view = Constants.GRINDR_PKG + ".view"
119119

120+
/* unused
120121
const val ExtendedProfileFieldView = "$_view.bv"
121122
object ExtendedProfileFieldView_ {
122123
const val setLabel = "a"
123124
const val setValue = "b"
124125
}
126+
*/
125127

126128
const val TapsAnimLayout = "$_view.TapsAnimLayout"
127129
object TapsAnimLayout_ {

0 commit comments

Comments
 (0)