From 0fb78dba5c4aea3c0d25e4fae5c4936defd03454 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pijus=20Petkevi=C4=8Dius?= <32205463+cezaris13@users.noreply.github.com> Date: Mon, 16 Dec 2024 19:03:52 +0200 Subject: [PATCH] changed from 0 to 1 in trackPosition method (#98) --- .../java/com/github/itwin/mobilesdk/ITMGeolocationManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile-sdk/src/main/java/com/github/itwin/mobilesdk/ITMGeolocationManager.kt b/mobile-sdk/src/main/java/com/github/itwin/mobilesdk/ITMGeolocationManager.kt index fe6f191..893c5e0 100644 --- a/mobile-sdk/src/main/java/com/github/itwin/mobilesdk/ITMGeolocationManager.kt +++ b/mobile-sdk/src/main/java/com/github/itwin/mobilesdk/ITMGeolocationManager.kt @@ -395,7 +395,7 @@ class ITMGeolocationManager(private var context: Context, private val errorHandl ensureLocationAvailability() getWatchIds { it.add(positionId) - if (it.size == 0) { + if (it.size == 1) { requestLocationUpdates() } }