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