google / google/ground-android

Investigate if this method be pulled to BasemapViewModel since location lock is available...

Open
#2,985 0 comments 0 reactions 1 assignee Claimed by @shobhitagarwal1612 View on GitHub
type: code health
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.