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
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -137,6 +137,8 @@ internal class WeatherRepositoryImpl(
providerSetting = it
}
}
}
scope.launch {
hasLocationPermission.collectLatest {
if (it) requestUpdate()
}