From 18b2098a4f4885fe11f7bc83693d329d870bb21b Mon Sep 17 00:00:00 2001 From: Leonard Kugis Date: Tue, 26 Dec 2023 03:12:52 +0100 Subject: Fixed fake location parameters entry --- .../e/advancedprivacy/fakelocation/services/FakeLocationService.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fakelocation/src') diff --git a/fakelocation/src/main/java/foundation/e/advancedprivacy/fakelocation/services/FakeLocationService.kt b/fakelocation/src/main/java/foundation/e/advancedprivacy/fakelocation/services/FakeLocationService.kt index 5336b24..efccb28 100644 --- a/fakelocation/src/main/java/foundation/e/advancedprivacy/fakelocation/services/FakeLocationService.kt +++ b/fakelocation/src/main/java/foundation/e/advancedprivacy/fakelocation/services/FakeLocationService.kt @@ -78,8 +78,8 @@ class FakeLocationService : Service() { when (it.action?.let { str -> Actions.valueOf(str) }) { Actions.START_FAKE_LOCATION -> { altitude = it.getDoubleExtra(PARAM_ALTITUDE, 3.0) - speed = it.getFloatExtra(PARAM_ALTITUDE, 1.0f) - jitter = it.getFloatExtra(PARAM_ALTITUDE, 3.0f) + speed = it.getFloatExtra(PARAM_SPEED, 1.0f) + jitter = it.getFloatExtra(PARAM_JITTER, 3.0f) fakeLocation = Pair( it.getDoubleExtra(PARAM_LATITUDE, 0.0), it.getDoubleExtra(PARAM_LONGITUDE, 0.0) -- cgit v1.2.1