Skip to content

Commit

Permalink
fixes #18: keep dark widget dark after auto updating
Browse files Browse the repository at this point in the history
  • Loading branch information
Sander Baas committed Jul 20, 2019
1 parent 8bb21c2 commit e11439e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/nl/implode/weer/ForecastWidgetService.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ private String getIconImage(String iconCode) {

private void processForecasts(JSONObject forecast, Integer widgetId) {
Integer maxDays = 4;
String widgetStyle = ForecastWidgetConfigureActivity.loadPref(gContext, "widgetStyle", widgetId);
dark = widgetStyle == "dark";
CharSequence widgetStyle = ForecastWidgetConfigureActivity.loadPref(gContext, "widgetStyle", widgetId);
dark = widgetStyle.equals("dark");
RemoteViews views = new RemoteViews(gContext.getPackageName(), getLayout("forecast_widget"));
CharSequence stationName = ForecastWidgetConfigureActivity.loadPref(gContext, "stationName", widgetId);
CharSequence stationCountry = ForecastWidgetConfigureActivity.loadPref(gContext, "stationCountry", widgetId);
Expand Down

0 comments on commit e11439e

Please sign in to comment.