|
|
|
@ -82,6 +82,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
|
private SwitchCompat swShadowBorder;
|
|
|
|
|
private SwitchCompat swShadowHighlight;
|
|
|
|
|
private SwitchCompat swTabularDividers;
|
|
|
|
|
private SwitchCompat swTabularUnreadBg;
|
|
|
|
|
private SwitchCompat swPortrait2;
|
|
|
|
|
private SwitchCompat swPortrait2c;
|
|
|
|
|
private Spinner spPortraitMinSize;
|
|
|
|
@ -210,7 +211,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
|
private final static List<String> RESET_OPTIONS = Collections.unmodifiableList(Arrays.asList(
|
|
|
|
|
"theme", "startup",
|
|
|
|
|
"date", "date_week", "date_fixed", "date_bold", "date_time", "group_category",
|
|
|
|
|
"cards", "beige", "tabular_card_bg", "shadow_unread", "shadow_border", "shadow_highlight", "dividers",
|
|
|
|
|
"cards", "beige", "tabular_card_bg", "shadow_unread", "shadow_border", "shadow_highlight", "dividers", "tabular_unread_bg",
|
|
|
|
|
"portrait2", "portrait2c", "landscape", "close_pane", "open_pane", "column_width",
|
|
|
|
|
"hide_toolbar", "nav_options", "nav_categories", "nav_last_sync", "nav_count", "nav_unseen_drafts", "nav_count_pinned", "navbar_colorize",
|
|
|
|
|
"threading", "threading_unread", "indentation", "seekbar", "actionbar", "actionbar_swap", "actionbar_color",
|
|
|
|
@ -259,6 +260,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
|
swShadowBorder = view.findViewById(R.id.swShadowBorder);
|
|
|
|
|
swShadowHighlight = view.findViewById(R.id.swShadowHighlight);
|
|
|
|
|
swTabularDividers = view.findViewById(R.id.swTabularDividers);
|
|
|
|
|
swTabularUnreadBg = view.findViewById(R.id.swTabularUnreadBg);
|
|
|
|
|
swPortrait2 = view.findViewById(R.id.swPortrait2);
|
|
|
|
|
swPortrait2c = view.findViewById(R.id.swPortrait2c);
|
|
|
|
|
spPortraitMinSize = view.findViewById(R.id.spPortraitMinSize);
|
|
|
|
@ -492,6 +494,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
|
swShadowBorder.setEnabled(swShadow.isEnabled() && checked);
|
|
|
|
|
swShadowHighlight.setEnabled(swShadow.isEnabled() && checked);
|
|
|
|
|
swTabularDividers.setEnabled(!checked);
|
|
|
|
|
swTabularUnreadBg.setEnabled(!checked);
|
|
|
|
|
swIndentation.setEnabled(checked);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
@ -541,6 +544,13 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
swTabularUnreadBg.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
prefs.edit().putBoolean("tabular_unread_bg", checked).apply();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
swPortrait2.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
@ -1542,6 +1552,8 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
|
swShadowHighlight.setEnabled(swShadow.isEnabled() && swShadow.isChecked());
|
|
|
|
|
swTabularDividers.setChecked(prefs.getBoolean("dividers", true));
|
|
|
|
|
swTabularDividers.setEnabled(!swCards.isChecked());
|
|
|
|
|
swTabularUnreadBg.setChecked(prefs.getBoolean("tabular_unread_bg", false));
|
|
|
|
|
swTabularUnreadBg.setEnabled(!swCards.isChecked());
|
|
|
|
|
swPortrait2.setChecked(prefs.getBoolean("portrait2", false));
|
|
|
|
|
swPortrait2c.setChecked(prefs.getBoolean("portrait2c", false) && !swPortrait2.isChecked());
|
|
|
|
|
spPortraitMinSize.setSelection(prefs.getInt("portrait_min_size", 0));
|
|
|
|
|