Skip to content

Commit 4e12feb

Browse files
committed
fixed last PR comments
1 parent b80d59b commit 4e12feb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/src/main/kotlin/com/icapps/background_location_tracker/service/LocationUpdatesService.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import com.icapps.background_location_tracker.utils.Logger
2424
import com.icapps.background_location_tracker.utils.NotificationUtil
2525
import com.icapps.background_location_tracker.utils.SharedPrefsUtil
2626

27-
private const val timeOut = 24 * 60 * 60 * 1000L
27+
private const val timeOut = 24 * 60 * 60 * 1000L /*24 hours max */
2828

2929
internal class LocationUpdatesService : Service() {
3030
private val binder: IBinder = LocalBinder()
@@ -162,7 +162,7 @@ internal class LocationUpdatesService : Service() {
162162
* [SecurityException].
163163
*/
164164
fun startTracking() {
165-
wakeLock?.acquire(timeOut /*24 hours max */)
165+
wakeLock?.acquire(timeOut)
166166

167167
Logger.debug(TAG, "Requesting location updates")
168168
SharedPrefsUtil.saveIsTracking(this, true)

0 commit comments

Comments
 (0)