ground-android
ground-android copied to clipboard
Investigate if this method be pulled to BasemapViewModel since location lock is available...
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
}
}
// 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.