File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
android/src/main/kotlin/com/icapps/background_location_tracker/service Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import com.icapps.background_location_tracker.utils.Logger
24
24
import com.icapps.background_location_tracker.utils.NotificationUtil
25
25
import com.icapps.background_location_tracker.utils.SharedPrefsUtil
26
26
27
- private const val timeOut = 24 * 60 * 60 * 1000L
27
+ private const val timeOut = 24 * 60 * 60 * 1000L /* 24 hours max */
28
28
29
29
internal class LocationUpdatesService : Service () {
30
30
private val binder: IBinder = LocalBinder ()
@@ -162,7 +162,7 @@ internal class LocationUpdatesService : Service() {
162
162
* [SecurityException].
163
163
*/
164
164
fun startTracking () {
165
- wakeLock?.acquire(timeOut /* 24 hours max */ )
165
+ wakeLock?.acquire(timeOut)
166
166
167
167
Logger .debug(TAG , " Requesting location updates" )
168
168
SharedPrefsUtil .saveIsTracking(this , true )
You can’t perform that action at this time.
0 commit comments