commit 1a9d55b2176ff4de9f0abba909d6c2dd11fa5efa
parent 87f88859a318dfed1b4b1ff7fd5332925e682c90
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date:   Wed, 11 Oct 2023 17:16:55 +0200

fix: location spoofer in background

Diffstat:
Mcore/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/global/LocationSpoofer.kt | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/global/LocationSpoofer.kt b/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/global/LocationSpoofer.kt @@ -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