You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param task The [Task] to retrieve data for.
* @return The [TaskData] associated with the task, or `null` if no data is found.
*/
@Deprecated("Use getData(taskId: String) instead")
fun getData(task: Task): TaskData? = _dataState.value[task]
// TODO: Refactor task data handler to use TaskId as key instead of Task.
// Issue URL: https://github.com/google/ground-android/issues/3009
fun getData(taskId: String): TaskData? =
_dataState.value.filterKeys { it.id == taskId }.values.firstOrNull()
/**
* Returns a [TaskSelections] map representing the current state of task data.
*
The text was updated successfully, but these errors were encountered:
ground-android/app/src/main/java/com/google/android/ground/ui/datacollection/TaskDataHandler.kt
Lines 60 to 61 in ce06a09
The text was updated successfully, but these errors were encountered: