diff --git a/app/src/main/java/com/forrestguice/suntimeswidget/SuntimesActivity.java b/app/src/main/java/com/forrestguice/suntimeswidget/SuntimesActivity.java index fd0565481..ebaaec019 100644 --- a/app/src/main/java/com/forrestguice/suntimeswidget/SuntimesActivity.java +++ b/app/src/main/java/com/forrestguice/suntimeswidget/SuntimesActivity.java @@ -513,7 +513,7 @@ public void onResume() } TimeDateDialog seekDateDialog = (TimeDateDialog) fragments.findFragmentByTag(DIALOGTAG_DATE_SEEK); - if (dateDialog != null) + if (seekDateDialog != null) { seekDateDialog.setTimezone(dataset.timezone()); seekDateDialog.setOnAcceptedListener(onSeekDate(seekDateDialog));