Skip to content

Commit

Permalink
Fix for #60
Browse files Browse the repository at this point in the history
  • Loading branch information
woheller69 committed Jul 5, 2022
1 parent 26952a9 commit 153cf43
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,12 @@ public static void updateView(Context context, AppWidgetManager appWidgetManager
views.setTextViewText(R.id.widget_rain60min,"☔ "+rain60);
views.setTextViewText(R.id.widget_city_name, city.getCityName());
views.setImageViewResource(R.id.widget_windicon,StringFormatUtils.colorWindSpeedWidget(weatherData.getWindSpeed()));
views.setTextViewText(R.id.widget_sunrise_sunset,"\u2600\u25b2\u2009" + StringFormatUtils.formatTimeWithoutZone(context, riseTime) + " \u25bc\u2009" + StringFormatUtils.formatTimeWithoutZone(context, setTime));

if (riseTime==zoneseconds*1000 || setTime==zoneseconds*1000) views.setTextViewText(R.id.widget_sunrise_sunset,"\u2600\u25b2 --:--" + " \u25bc --:--");
else {
views.setTextViewText(R.id.widget_sunrise_sunset,"\u2600\u25b2\u2009" + StringFormatUtils.formatTimeWithoutZone(context, riseTime) + " \u25bc\u2009" + StringFormatUtils.formatTimeWithoutZone(context, setTime));
}

views.setTextViewText(R.id.widget_UVindex,"UV");
views.setInt(R.id.widget_UVindex,"setBackgroundResource",StringFormatUtils.widgetColorUVindex(context,Math.round(weekforecasts.get(0).getUv_index())));

Expand Down

0 comments on commit 153cf43

Please sign in to comment.