google / google/ground-android
Investigate if this method be pulled to BasemapViewModel since location lock is available...
- Dominant language
- Kotlin
- Stars
- 293
- Forks
- 149
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 42
Description
for all map tasks\.
https://github.com/google/ground-android/blob/4c5d13acdc698760b90b0658e147a5ac70982b74/ground/src/main/java/com/google/android/ground/ui/datacollection/tasks/location/CaptureLocationTaskViewModel.kt#L81-L83
```text
}
}
// TODO: Investigate if this method be pulled to BasemapViewModel since location lock is available
// Issue URL: https://github.com/google/ground-android/issues/2985
// for all map tasks.
suspend fun initLocationUpdates(mapViewModel: BaseMapViewModel) {
val locationLockEnabledState =
if (mapViewModel.hasLocationPermission()) {
// User has permission to enable location updates, enable it now.
```
Contributor guide
Assessment
This issue has not been assessed yet.