We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68feff6 commit 70f031eCopy full SHA for 70f031e
app/src/main/java/de/seemoo/at_tracking_detection/detection/LocationProvider.kt
@@ -211,13 +211,15 @@ open class LocationProvider @Inject constructor(
211
handler.looper
212
)
213
214
- locationManager.requestLocationUpdates(
215
- LocationManager.NETWORK_PROVIDER,
216
- MIN_UPDATE_TIME_MS,
217
- MIN_DISTANCE_METER,
218
- this,
219
- handler.looper
220
- )
+ if (networkProviderEnabled){
+ locationManager.requestLocationUpdates(
+ LocationManager.NETWORK_PROVIDER,
+ MIN_UPDATE_TIME_MS,
+ MIN_DISTANCE_METER,
+ this,
+ handler.looper
221
+ )
222
+ }
223
224
} else if (networkProviderEnabled) {
225
locationManager.requestLocationUpdates(
0 commit comments