From 43ac29456bd388f8a4d83b3f057d09835b9c07d4 Mon Sep 17 00:00:00 2001 From: Gino Miceli Date: Fri, 1 Mar 2024 14:41:09 -0500 Subject: [PATCH] Use viewLifecycleOwner --- .../ui/home/mapcontainer/HomeScreenMapContainerFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ground/src/main/java/com/google/android/ground/ui/home/mapcontainer/HomeScreenMapContainerFragment.kt b/ground/src/main/java/com/google/android/ground/ui/home/mapcontainer/HomeScreenMapContainerFragment.kt index 7045f1f2f6..89b8be8aad 100644 --- a/ground/src/main/java/com/google/android/ground/ui/home/mapcontainer/HomeScreenMapContainerFragment.kt +++ b/ground/src/main/java/com/google/android/ground/ui/home/mapcontainer/HomeScreenMapContainerFragment.kt @@ -129,7 +129,7 @@ class HomeScreenMapContainerFragment : AbstractMapContainerFragment() { super.onViewCreated(view, savedInstanceState) setupMenuFab() setupBottomLoiCards() - lifecycleScope.launch { showDataCollectionHint() } + viewLifecycleOwner.lifecycleScope.launch { showDataCollectionHint() } } /**