Skip to content

Commit 977d5d3

Browse files
Removed this + improved readme.md
1 parent 376daa2 commit 977d5d3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ import background_location_tracker
7474
}
7575
```
7676

77-
## Dart implementation
77+
## Flutter implementation
7878

7979
Make sure you set the `@pragma('vm:entry-point')` to make sure you can find the callback in release.
8080

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ internal class LocationUpdatesService : Service() {
163163
} else {
164164
startService(Intent(applicationContext, LocationUpdatesService::class.java))
165165
}
166-
val locationRequest = this.locationRequest ?: return
167-
val locationCallback = this.locationCallback ?: return
166+
val locationRequest = locationRequest ?: return
167+
val locationCallback = locationCallback ?: return
168168
try {
169169
fusedLocationClient?.requestLocationUpdates(locationRequest, locationCallback, Looper.myLooper())
170170
} catch (unlikely: SecurityException) {
@@ -185,7 +185,7 @@ internal class LocationUpdatesService : Service() {
185185
wakeLock?.release();
186186
}
187187
Logger.debug(TAG, "Removing location updates")
188-
val locationCallback = this.locationCallback ?: return
188+
val locationCallback = locationCallback ?: return
189189
try {
190190
fusedLocationClient?.removeLocationUpdates(locationCallback)
191191
SharedPrefsUtil.saveIsTracking(this, false)

0 commit comments

Comments
 (0)