From 44e3ce90719846262c8002c592bcaddc1b928368 Mon Sep 17 00:00:00 2001 From: Bruno Lazarini Sigg Date: Thu, 19 Dec 2024 16:54:40 +0100 Subject: [PATCH] fix: make repository private in LocationViewModel --- .../com/android/periodpals/model/location/LocationViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/android/periodpals/model/location/LocationViewModel.kt b/app/src/main/java/com/android/periodpals/model/location/LocationViewModel.kt index 24cef4e98..5e8b70ecd 100644 --- a/app/src/main/java/com/android/periodpals/model/location/LocationViewModel.kt +++ b/app/src/main/java/com/android/periodpals/model/location/LocationViewModel.kt @@ -18,7 +18,7 @@ private const val TAG = "LocationViewModel" * query input. It exposes StateFlows to observe query changes and location suggestions in a * reactive way. */ -class LocationViewModel(val repository: LocationModel) : ViewModel() { +class LocationViewModel(private val repository: LocationModel) : ViewModel() { private val _query = MutableStateFlow("") val query: StateFlow = _query