Skip to content

Commit

Permalink
Merge pull request #112 from Propo41/feature/bus_resposition_log
Browse files Browse the repository at this point in the history
- changed location sharing update interval time to 60s
  • Loading branch information
Propo41 authored Dec 1, 2021
2 parents 2e6d470 + 88f6fca commit 45582ef
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ class ForegroundOnlyLocationService : Service() {
fusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(this)
locationRequest = LocationRequest.create().apply {
// set the timing and stuff
interval = TimeUnit.SECONDS.toMillis(3)
fastestInterval = TimeUnit.SECONDS.toMillis(5)
maxWaitTime = TimeUnit.SECONDS.toMillis(2)
priority = LocationRequest.PRIORITY_HIGH_ACCURACY
interval = TimeUnit.SECONDS.toMillis(60)
fastestInterval = TimeUnit.SECONDS.toMillis(60)
maxWaitTime = TimeUnit.SECONDS.toMillis(60)
priority = LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY
}

locationCallback = object : LocationCallback() {
Expand Down

0 comments on commit 45582ef

Please sign in to comment.