Immediately update weather data after granting location permission

This commit is contained in:
MM20
2023-10-06 14:46:40 +02:00
parent d4b5f54a3e
commit b8261f047e
@@ -137,6 +137,8 @@ internal class WeatherRepositoryImpl(
providerSetting = it
}
}
}
scope.launch {
hasLocationPermission.collectLatest {
if (it) requestUpdate()
}