From 76030b4f184432b4ffa6a850031d640b98d73dc0 Mon Sep 17 00:00:00 2001 From: MM20 <15646950+MM2-0@users.noreply.github.com> Date: Fri, 24 Oct 2025 20:32:38 +0200 Subject: [PATCH] Fix breezy weather icons Fix #1438 --- .../weather/breezy/BreezyWeatherProvider.kt | 28 +++++++------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/data/weather/src/main/java/de/mm20/launcher2/weather/breezy/BreezyWeatherProvider.kt b/data/weather/src/main/java/de/mm20/launcher2/weather/breezy/BreezyWeatherProvider.kt index 03653dfdc..cdbf15e2b 100644 --- a/data/weather/src/main/java/de/mm20/launcher2/weather/breezy/BreezyWeatherProvider.kt +++ b/data/weather/src/main/java/de/mm20/launcher2/weather/breezy/BreezyWeatherProvider.kt @@ -100,26 +100,18 @@ class BreezyWeatherProvider( private fun iconForId(id: Int): WeatherIcon { return when (id) { - 200, 201, in 230..232 -> WeatherIcon.ThunderstormWithRain - 202 -> WeatherIcon.ThunderstormWithRain - 210, 211 -> WeatherIcon.Thunderstorm - 212, 221 -> WeatherIcon.HeavyThunderstorm - in 300..302, in 310..312 -> WeatherIcon.Drizzle - 313, 314, 321, in 500..504, 511, in 520..522, 531 -> WeatherIcon.Showers - in 600..602 -> WeatherIcon.Snow - 611, 612, 615, 616, in 620..622 -> WeatherIcon.Sleet - 701, 711, 731, 741, 761, 762 -> WeatherIcon.Fog - 721 -> WeatherIcon.Haze - 771, 781, in 900..902, in 958..962 -> WeatherIcon.Storm 800 -> WeatherIcon.Clear 801 -> WeatherIcon.PartlyCloudy - 802 -> WeatherIcon.BrokenClouds - 803 -> WeatherIcon.MostlyCloudy - 804, 951 -> WeatherIcon.Cloudy - 903 -> WeatherIcon.Cold - 904 -> WeatherIcon.Hot - 905, in 952..957 -> WeatherIcon.Wind - 906 -> WeatherIcon.Hail + 803 -> WeatherIcon.Cloudy + 500 -> WeatherIcon.Showers + 600 -> WeatherIcon.Snow + 771 -> WeatherIcon.Wind + 741 -> WeatherIcon.Fog + 751 -> WeatherIcon.Haze + 611 -> WeatherIcon.Sleet + 511 -> WeatherIcon.Hail + 210 -> WeatherIcon.Thunderstorm + 211 -> WeatherIcon.ThunderstormWithRain else -> WeatherIcon.Unknown } }