Skip to content

Commit

Permalink
Remove unused preference
Browse files Browse the repository at this point in the history
  • Loading branch information
yvolk committed Sep 28, 2019
1 parent de62e27 commit bf8d83a
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ public class InstanceSettings {

// ----------------------------------------------------------------------------------
// Layout
@Deprecated
static final String PREF_SHOW_WIDGET_HEADER = "showHeader";
static final String PREF_WIDGET_HEADER_LAYOUT = "widgetHeaderLayout";
private WidgetHeaderLayout widgetHeaderLayout = WidgetHeaderLayout.defaultValue;
static final String PREF_SHOW_DATE_ON_WIDGET_HEADER = "showDateOnWidgetHeader";
Expand All @@ -55,7 +53,7 @@ public class InstanceSettings {
static final String PREF_SHOW_PAST_EVENTS_UNDER_ONE_HEADER = "showPastEventsUnderOneHeader";
private boolean showPastEventsUnderOneHeader = false;
static final String PREF_DAY_HEADER_ALIGNMENT = "dayHeaderAlignment";
static final String PREF_DAY_HEADER_ALIGNMENT_DEFAULT = Alignment.RIGHT.name();
private static final String PREF_DAY_HEADER_ALIGNMENT_DEFAULT = Alignment.RIGHT.name();
private String dayHeaderAlignment = PREF_DAY_HEADER_ALIGNMENT_DEFAULT;
static final String PREF_SHOW_DAYS_WITHOUT_EVENTS = "showDaysWithoutEvents";
private boolean showDaysWithoutEvents = false;
Expand Down Expand Up @@ -238,9 +236,6 @@ public static InstanceSettings fromJson(Context context, JSONObject json) throws
}
if (json.has(PREF_WIDGET_HEADER_LAYOUT)) {
settings.widgetHeaderLayout = WidgetHeaderLayout.fromValue(json.getString(PREF_WIDGET_HEADER_LAYOUT));
} else if (json.has(PREF_SHOW_WIDGET_HEADER)) {
settings.widgetHeaderLayout = json.getBoolean(PREF_SHOW_WIDGET_HEADER)
? WidgetHeaderLayout.defaultValue : WidgetHeaderLayout.HIDDEN;
}
if (json.has(PREF_TEXT_SIZE_SCALE)) {
settings.textSizeScale = json.getString(PREF_TEXT_SIZE_SCALE);
Expand Down

0 comments on commit bf8d83a

Please sign in to comment.