In the notification, the night versions of 'clear' and 'few clouds' icons are always displayed in place of the day versions, regardless of time of day. Both 'Simple' and 'Default' notifications are affected, while the icon in the main app UI is correct.
This may have something to do with there now being two different isDayTime functions, two different classes for data representation -- Weather and ImmutableWeather, two OWM json parsers, etc... 🤷
The new icon number to icon string conversion doesn't seem suspect, and the strings for day and night are different in the resources. I couldn't debug this further just by code gazing, but seems an easy fix when one is equipped with debugger or sprinkles some holy printfs on the problem.
In the notification, the night versions of 'clear' and 'few clouds' icons are always displayed in place of the day versions, regardless of time of day. Both 'Simple' and 'Default' notifications are affected, while the icon in the main app UI is correct.
This may have something to do with there now being two different
isDayTime
functions, two different classes for data representation --Weather
andImmutableWeather
, two OWM json parsers, etc... 🤷The new icon number to icon string conversion doesn't seem suspect, and the strings for day and night are different in the resources. I couldn't debug this further just by code gazing, but seems an easy fix when one is equipped with debugger or sprinkles some holy printfs on the problem.