diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/service/location/LocationState.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/service/location/LocationState.kt index c72cd8fe9..d3a8d15d8 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/service/location/LocationState.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/service/location/LocationState.kt @@ -65,7 +65,7 @@ class LocationState( } @OptIn(ExperimentalCoroutinesApi::class) - val geohashStateFlow = + val geohashStateFlow by lazy { hasLocationPermission .transformLatest { if (it) { @@ -92,4 +92,5 @@ class LocationState( SharingStarted.WhileSubscribed(5000), latestLocation, ) + } }