summaryrefslogtreecommitdiff
path: root/fakelocation/src/main/java
diff options
context:
space:
mode:
authorLeonard Kugis <leonard@kug.is>2023-12-26 03:12:52 +0100
committerLeonard Kugis <leonard@kug.is>2023-12-26 03:12:52 +0100
commit18b2098a4f4885fe11f7bc83693d329d870bb21b (patch)
tree72373b3ce4dfaf3dc196a375116d7f9f532247a3 /fakelocation/src/main/java
parent1490f34152152e6f42d4a2ca5828058cb5ab9904 (diff)
Fixed fake location parameters entry
Diffstat (limited to 'fakelocation/src/main/java')
-rw-r--r--fakelocation/src/main/java/foundation/e/advancedprivacy/fakelocation/services/FakeLocationService.kt4
1 files changed, 2 insertions, 2 deletions
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)