Fix: Fixed the weather widget showing sunset and sunrise

Signed-off-by: HeCodes2Much <wayne6324@gmail.com>
This commit is contained in:
HeCodes2Much
2024-07-22 08:31:12 +01:00
parent b67163302a
commit 9ca2cfa03a

View File

@@ -154,6 +154,10 @@ class WidgetFragment : Fragment(),
weatherWidgetDrawable.setColor(widgetBackgroundColor)
}
if (preferenceHelper.showWeatherWidgetSunSetRise) {
binding.weatherSunsetSunrise.visibility = View.VISIBLE
}
weatherCity.setTextColor(widgetTextColor)
weatherTemperature.setTextColor(widgetTextColor)
weatherDescription.setTextColor(widgetTextColor)
@@ -309,10 +313,6 @@ class WidgetFragment : Fragment(),
weatherBatteryDrawable.setColor(preferenceHelper.widgetBackgroundColor)
}
if (preferenceHelper.showWeatherWidgetSunSetRise) {
binding.weatherSunsetSunrise.visibility = View.VISIBLE
}
binding.batteryLevel.setTextColor(preferenceHelper.widgetTextColor)
binding.batteryCount.setTextColor(preferenceHelper.widgetTextColor)
binding.chargingStatus.setTextColor(preferenceHelper.widgetTextColor)