Skip to content

Commit

Permalink
Fix Location Mock error on devices below SDK 31
Browse files Browse the repository at this point in the history
  • Loading branch information
ElJaviLuki committed Sep 15, 2022
1 parent 113c4b9 commit ae7d0d8
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions app/src/main/java/com/eljaviluki/grindrplus/Hooks.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.eljaviluki.grindrplus

import android.os.Build
import android.util.AttributeSet
import android.view.View
import android.view.Window
Expand Down Expand Up @@ -352,11 +353,13 @@ object Hooks {
RETURN_FALSE
)

findAndHookMethod(
class_Location,
"isMock",
RETURN_FALSE
)
if(Build.VERSION.SDK_INT >= 31) {
findAndHookMethod(
class_Location,
"isMock",
RETURN_FALSE
)
}
}


Expand Down

0 comments on commit ae7d0d8

Please sign in to comment.