|
|
@ -89,7 +89,6 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
private SwitchCompat swLandscape;
|
|
|
|
private SwitchCompat swLandscape;
|
|
|
|
private Spinner spLandscapeMinSize;
|
|
|
|
private Spinner spLandscapeMinSize;
|
|
|
|
private SwitchCompat swClosePane;
|
|
|
|
private SwitchCompat swClosePane;
|
|
|
|
private SwitchCompat swOpenPane;
|
|
|
|
|
|
|
|
private TextView tvColumnWidth;
|
|
|
|
private TextView tvColumnWidth;
|
|
|
|
private SeekBar sbColumnWidth;
|
|
|
|
private SeekBar sbColumnWidth;
|
|
|
|
private SwitchCompat swHideToolbar;
|
|
|
|
private SwitchCompat swHideToolbar;
|
|
|
@ -213,7 +212,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
"theme", "startup",
|
|
|
|
"theme", "startup",
|
|
|
|
"date", "date_week", "date_fixed", "date_bold", "date_time", "group_category",
|
|
|
|
"date", "date_week", "date_fixed", "date_bold", "date_time", "group_category",
|
|
|
|
"cards", "beige", "tabular_card_bg", "shadow_unread", "shadow_border", "shadow_highlight", "dividers", "tabular_unread_bg",
|
|
|
|
"cards", "beige", "tabular_card_bg", "shadow_unread", "shadow_border", "shadow_highlight", "dividers", "tabular_unread_bg",
|
|
|
|
"portrait2", "portrait2c", "landscape", "close_pane", "open_pane", "column_width",
|
|
|
|
"portrait2", "portrait2c", "landscape", "close_pane", "column_width",
|
|
|
|
"hide_toolbar", "edge_to_edge", "nav_options", "nav_categories", "nav_last_sync", "nav_count", "nav_unseen_drafts", "nav_count_pinned", "show_unexposed",
|
|
|
|
"hide_toolbar", "edge_to_edge", "nav_options", "nav_categories", "nav_last_sync", "nav_count", "nav_unseen_drafts", "nav_count_pinned", "show_unexposed",
|
|
|
|
"threading", "threading_unread", "indentation", "seekbar", "actionbar", "actionbar_swap", "actionbar_color",
|
|
|
|
"threading", "threading_unread", "indentation", "seekbar", "actionbar", "actionbar_swap", "actionbar_color",
|
|
|
|
"highlight_unread", "highlight_color", "color_stripe", "color_stripe_wide",
|
|
|
|
"highlight_unread", "highlight_color", "color_stripe", "color_stripe_wide",
|
|
|
@ -268,7 +267,6 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
swLandscape = view.findViewById(R.id.swLandscape);
|
|
|
|
swLandscape = view.findViewById(R.id.swLandscape);
|
|
|
|
spLandscapeMinSize = view.findViewById(R.id.spLandscapeMinSize);
|
|
|
|
spLandscapeMinSize = view.findViewById(R.id.spLandscapeMinSize);
|
|
|
|
swClosePane = view.findViewById(R.id.swClosePane);
|
|
|
|
swClosePane = view.findViewById(R.id.swClosePane);
|
|
|
|
swOpenPane = view.findViewById(R.id.swOpenPane);
|
|
|
|
|
|
|
|
tvColumnWidth = view.findViewById(R.id.tvColumnWidth);
|
|
|
|
tvColumnWidth = view.findViewById(R.id.tvColumnWidth);
|
|
|
|
sbColumnWidth = view.findViewById(R.id.sbColumnWidth);
|
|
|
|
sbColumnWidth = view.findViewById(R.id.sbColumnWidth);
|
|
|
|
swHideToolbar = view.findViewById(R.id.swHideToolbar);
|
|
|
|
swHideToolbar = view.findViewById(R.id.swHideToolbar);
|
|
|
@ -607,14 +605,6 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
prefs.edit().putBoolean("close_pane", checked).apply();
|
|
|
|
prefs.edit().putBoolean("close_pane", checked).apply();
|
|
|
|
swOpenPane.setEnabled(!checked);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
swOpenPane.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
|
|
|
prefs.edit().putBoolean("open_pane", checked).apply();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -1568,8 +1558,6 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
swLandscape.setChecked(prefs.getBoolean("landscape", true));
|
|
|
|
swLandscape.setChecked(prefs.getBoolean("landscape", true));
|
|
|
|
spLandscapeMinSize.setSelection(prefs.getInt("landscape_min_size", 0));
|
|
|
|
spLandscapeMinSize.setSelection(prefs.getInt("landscape_min_size", 0));
|
|
|
|
swClosePane.setChecked(prefs.getBoolean("close_pane", !Helper.isSurfaceDuo()));
|
|
|
|
swClosePane.setChecked(prefs.getBoolean("close_pane", !Helper.isSurfaceDuo()));
|
|
|
|
swOpenPane.setChecked(prefs.getBoolean("open_pane", false));
|
|
|
|
|
|
|
|
swOpenPane.setEnabled(!swClosePane.isChecked());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int column_width = prefs.getInt("column_width", 67);
|
|
|
|
int column_width = prefs.getInt("column_width", 67);
|
|
|
|
tvColumnWidth.setText(getString(R.string.title_advanced_column_width, NF.format(column_width)));
|
|
|
|
tvColumnWidth.setText(getString(R.string.title_advanced_column_width, NF.format(column_width)));
|
|
|
|