diff options
Diffstat (limited to 'fakelocation/src')
-rw-r--r-- | fakelocation/src/main/java/foundation/e/advancedprivacy/fakelocation/services/FakeLocationService.kt | 2 |
1 files changed, 1 insertions, 1 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 41784a1..5136ec9 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 @@ -126,6 +126,7 @@ class FakeLocationService : Service() { Actions.START_ROUTE -> { route = Gson().fromJson(it.getStringExtra(PARAM_ROUTE) ?: "[]", object : TypeToken<List<FakeLocationCoordinate>>() {}.type) loopRoute = it.getBooleanExtra(PARAM_ROUTE_LOOP, false) + routeTime = 0f initTimerRoute() } else -> {} @@ -226,7 +227,6 @@ class FakeLocationService : Service() { private fun initTimerRoute() { cdtRoute?.cancel() - routeTime = 0f cdtRoute = object : CountDownTimer(PERIOD_UPDATES_SERIE, PERIOD_LOCATION_UPDATE) { override fun onTick(millisUntilFinished: Long) { var coord = calculateRouteSegment() |