fix: location spoofer in background

This commit is contained in:
rhunk
2023-10-11 17:16:55 +02:00
parent 87f88859a3
commit 1a9d55b217

View File

@@ -7,8 +7,8 @@ import me.rhunk.snapenhance.core.features.FeatureLoadParams
import me.rhunk.snapenhance.core.util.hook.HookStage
import me.rhunk.snapenhance.core.util.hook.hook
class LocationSpoofer: Feature("LocationSpoof", loadParams = FeatureLoadParams.ACTIVITY_CREATE_SYNC) {
override fun onActivityCreate() {
class LocationSpoofer: Feature("LocationSpoof", loadParams = FeatureLoadParams.INIT_SYNC) {
override fun init() {
if (context.config.global.spoofLocation.globalState != true) return
val coordinates by context.config.global.spoofLocation.coordinates