Weather widget: hide humidity if value is -1
This commit is contained in:
parent
7b6ff6e6eb
commit
97e714acf4
@ -158,10 +158,12 @@ fun CurrentWeather(forecast: Forecast, imperialUnits: Boolean) {
|
||||
Column(
|
||||
modifier = Modifier.fillMaxWidth()
|
||||
) {
|
||||
WeatherDetailRow(
|
||||
title = stringResource(id = R.string.weather_humidity),
|
||||
value = "${forecast.humidity.roundToInt()} %"
|
||||
)
|
||||
if (forecast.humidity >= 0) {
|
||||
WeatherDetailRow(
|
||||
title = stringResource(id = R.string.weather_humidity),
|
||||
value = "${forecast.humidity.roundToInt()} %"
|
||||
)
|
||||
}
|
||||
WeatherDetailRow(
|
||||
title = stringResource(id = R.string.weather_wind),
|
||||
value = formatWindSpeed(imperialUnits, forecast)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user