Skip to content

Commit

Permalink
SolsticeWidget
Browse files Browse the repository at this point in the history
apply the "show cross-quarter days" app setting to the solstice widget (#755)
  • Loading branch information
forrestguice committed Dec 27, 2023
1 parent f3b8fd0 commit eec5a9e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ protected static SuntimesEquinoxSolsticeData getSolsticeEquinoxData(Context cont
boolean overrideMode = WidgetSettings.loadTimeMode2OverridePref(context, appWidgetId);
if (overrideMode)
{
int eventTrackingLevel = WidgetSettings.loadTrackingLevelPref(context, appWidgetId);
boolean showCrossQuarter = AppSettings.loadShowCrossQuarterPref(context); // TODO: add "tracking level" ui to config activity
int eventTrackingLevel = showCrossQuarter ? WidgetSettings.TRACKINGLEVEL_MAX : WidgetSettings.TRACKINGLEVEL_MIN; //WidgetSettings.loadTrackingLevelPref(context, appWidgetId);
SuntimesEquinoxSolsticeDataset dataset = (eventTrackingLevel > 0 ? new SuntimesEquinoxSolsticeDataset1(context, appWidgetId)
: new SuntimesEquinoxSolsticeDataset(context, appWidgetId));
dataset.calculateData();
Expand Down

0 comments on commit eec5a9e

Please sign in to comment.