Skip to content

Commit

Permalink
WidgetSettings
Browse files Browse the repository at this point in the history
changes default 'solar time' mode to Local Mean Time
  • Loading branch information
forrestguice committed Feb 18, 2022
1 parent 4396d84 commit 7c288be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ public void test_timezoneModePref()

WidgetSettings.deleteTimezoneModePref(context, appWidgetId);
WidgetSettings.TimezoneMode mode0 = WidgetSettings.loadTimezoneModePref(context, appWidgetId);
assertTrue("mode should be default (CURRENT) but was " + mode0, mode0 == WidgetSettings.PREF_DEF_TIMEZONE_MODE && mode0 == WidgetSettings.TimezoneMode.CURRENT_TIMEZONE);
assertTrue("mode should be default (SOLAR) but was " + mode0, mode0 == WidgetSettings.PREF_DEF_TIMEZONE_MODE && mode0 == WidgetSettings.TimezoneMode.SOLAR_TIME);
}

@Test
Expand Down Expand Up @@ -321,7 +321,7 @@ public void test_solarTimeModePref()

WidgetSettings.deleteSolarTimeModePref(context, appWidgetId);
WidgetSettings.SolarTimeMode mode0 = WidgetSettings.loadSolarTimeModePref(context, appWidgetId);
assertTrue("mode should be default (LOCAL_MEAN_TIME) but was " + mode0, mode0 == WidgetSettings.SolarTimeMode.APPARENT_SOLAR_TIME && mode0 == WidgetSettings.PREF_DEF_TIMEZONE_SOLARMODE);
assertTrue("mode should be default (LOCAL_MEAN_TIME) but was " + mode0, mode0 == WidgetSettings.SolarTimeMode.LOCAL_MEAN_TIME && mode0 == WidgetSettings.PREF_DEF_TIMEZONE_SOLARMODE);
}

///////////////////////////////////////////////////////////////////////////
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,14 @@ public class WidgetSettings
public static final boolean PREF_DEF_LOCATION_FROMAPP = false;

public static final String PREF_KEY_TIMEZONE_MODE = "timezoneMode";
public static final TimezoneMode PREF_DEF_TIMEZONE_MODE = TimezoneMode.CURRENT_TIMEZONE;
public static final TimezoneMode PREF_DEF_TIMEZONE_MODE = TimezoneMode.SOLAR_TIME;

public static final String PREF_KEY_TIMEZONE_CUSTOM = "timezone";
public static final String PREF_DEF_TIMEZONE_CUSTOM = "MST"; // TODO: candidate for initDefaults?
public static final String[][] PREF_DEF_TIMEZONES = new String[][] { new String[] {"", PREF_DEF_TIMEZONE_CUSTOM} };

public static final String PREF_KEY_TIMEZONE_SOLARMODE = "solarmode";
public static final SolarTimeMode PREF_DEF_TIMEZONE_SOLARMODE = SolarTimeMode.APPARENT_SOLAR_TIME;
public static final SolarTimeMode PREF_DEF_TIMEZONE_SOLARMODE = SolarTimeMode.LOCAL_MEAN_TIME;

public static final String PREF_KEY_DATE_MODE = "dateMode";
public static final DateMode PREF_DEF_DATE_MODE = DateMode.CURRENT_DATE;
Expand Down

0 comments on commit 7c288be

Please sign in to comment.