|
|
@ -93,6 +93,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
private TextView tvColumnWidth;
|
|
|
|
private TextView tvColumnWidth;
|
|
|
|
private SeekBar sbColumnWidth;
|
|
|
|
private SeekBar sbColumnWidth;
|
|
|
|
private SwitchCompat swHideToolbar;
|
|
|
|
private SwitchCompat swHideToolbar;
|
|
|
|
|
|
|
|
private SwitchCompat swEdgeToEdge;
|
|
|
|
private SwitchCompat swNavOptions;
|
|
|
|
private SwitchCompat swNavOptions;
|
|
|
|
private SwitchCompat swNavCategories;
|
|
|
|
private SwitchCompat swNavCategories;
|
|
|
|
private SwitchCompat swNavLastSync;
|
|
|
|
private SwitchCompat swNavLastSync;
|
|
|
@ -213,7 +214,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
"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", "open_pane", "column_width",
|
|
|
|
"hide_toolbar", "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",
|
|
|
|
"avatars", "bimi", "gravatars", "libravatars", "favicons", "favicons_partial", "favicons_manifest", "generated_icons", "identicons",
|
|
|
|
"avatars", "bimi", "gravatars", "libravatars", "favicons", "favicons_partial", "favicons_manifest", "generated_icons", "identicons",
|
|
|
@ -271,6 +272,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
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);
|
|
|
|
|
|
|
|
swEdgeToEdge = view.findViewById(R.id.swEdgeToEdge);
|
|
|
|
swNavOptions = view.findViewById(R.id.swNavOptions);
|
|
|
|
swNavOptions = view.findViewById(R.id.swNavOptions);
|
|
|
|
swNavCategories = view.findViewById(R.id.swNavCategories);
|
|
|
|
swNavCategories = view.findViewById(R.id.swNavCategories);
|
|
|
|
swNavLastSync = view.findViewById(R.id.swNavLastSync);
|
|
|
|
swNavLastSync = view.findViewById(R.id.swNavLastSync);
|
|
|
@ -644,6 +646,14 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
swEdgeToEdge.setVisibility(BuildConfig.DEBUG ? View.VISIBLE : View.GONE);
|
|
|
|
|
|
|
|
swEdgeToEdge.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
|
|
|
prefs.edit().putBoolean("edge_to_edge", checked).apply();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
swNavOptions.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
swNavOptions.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
@ -1565,6 +1575,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
sbColumnWidth.setProgress(column_width);
|
|
|
|
sbColumnWidth.setProgress(column_width);
|
|
|
|
|
|
|
|
|
|
|
|
swHideToolbar.setChecked(prefs.getBoolean("hide_toolbar", !BuildConfig.PLAY_STORE_RELEASE));
|
|
|
|
swHideToolbar.setChecked(prefs.getBoolean("hide_toolbar", !BuildConfig.PLAY_STORE_RELEASE));
|
|
|
|
|
|
|
|
swEdgeToEdge.setChecked(prefs.getBoolean("edge_to_edge", false));
|
|
|
|
swNavOptions.setChecked(prefs.getBoolean("nav_options", true));
|
|
|
|
swNavOptions.setChecked(prefs.getBoolean("nav_options", true));
|
|
|
|
swNavCategories.setChecked(prefs.getBoolean("nav_categories", false));
|
|
|
|
swNavCategories.setChecked(prefs.getBoolean("nav_categories", false));
|
|
|
|
swNavLastSync.setChecked(prefs.getBoolean("nav_last_sync", true));
|
|
|
|
swNavLastSync.setChecked(prefs.getBoolean("nav_last_sync", true));
|
|
|
|