Immediately update weather data after granting location permission
This commit is contained in:
parent
d4b5f54a3e
commit
b8261f047e
@ -137,6 +137,8 @@ internal class WeatherRepositoryImpl(
|
||||
providerSetting = it
|
||||
}
|
||||
}
|
||||
}
|
||||
scope.launch {
|
||||
hasLocationPermission.collectLatest {
|
||||
if (it) requestUpdate()
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user