|
|
@ -100,7 +100,6 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
private SwitchCompat swNavUnseenDrafts;
|
|
|
|
private SwitchCompat swNavUnseenDrafts;
|
|
|
|
private SwitchCompat swNavPinnedCount;
|
|
|
|
private SwitchCompat swNavPinnedCount;
|
|
|
|
private SwitchCompat swShowUnexposed;
|
|
|
|
private SwitchCompat swShowUnexposed;
|
|
|
|
private SwitchCompat swNavBarColorize;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private SwitchCompat swThreading;
|
|
|
|
private SwitchCompat swThreading;
|
|
|
|
private SwitchCompat swThreadingUnread;
|
|
|
|
private SwitchCompat swThreadingUnread;
|
|
|
@ -214,7 +213,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", "navbar_colorize",
|
|
|
|
"hide_toolbar", "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",
|
|
|
@ -279,7 +278,6 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
swNavUnseenDrafts = view.findViewById(R.id.swNavUnseenDrafts);
|
|
|
|
swNavUnseenDrafts = view.findViewById(R.id.swNavUnseenDrafts);
|
|
|
|
swNavPinnedCount = view.findViewById(R.id.swNavPinnedCount);
|
|
|
|
swNavPinnedCount = view.findViewById(R.id.swNavPinnedCount);
|
|
|
|
swShowUnexposed = view.findViewById(R.id.swShowUnexposed);
|
|
|
|
swShowUnexposed = view.findViewById(R.id.swShowUnexposed);
|
|
|
|
swNavBarColorize = view.findViewById(R.id.swNavBarColorize);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
swThreading = view.findViewById(R.id.swThreading);
|
|
|
|
swThreading = view.findViewById(R.id.swThreading);
|
|
|
|
swThreadingUnread = view.findViewById(R.id.swThreadingUnread);
|
|
|
|
swThreadingUnread = view.findViewById(R.id.swThreadingUnread);
|
|
|
@ -695,15 +693,6 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
swNavBarColorize.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
|
|
|
prefs.edit().putBoolean("navbar_colorize", checked).apply();
|
|
|
|
|
|
|
|
setNavigationBarColor(
|
|
|
|
|
|
|
|
checked ? Helper.resolveColor(getContext(), androidx.appcompat.R.attr.colorPrimaryDark) : Color.BLACK);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
swThreading.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
swThreading.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
@ -1583,7 +1572,6 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
swNavUnseenDrafts.setChecked(prefs.getBoolean("nav_unseen_drafts", false));
|
|
|
|
swNavUnseenDrafts.setChecked(prefs.getBoolean("nav_unseen_drafts", false));
|
|
|
|
swNavPinnedCount.setChecked(prefs.getBoolean("nav_count_pinned", false));
|
|
|
|
swNavPinnedCount.setChecked(prefs.getBoolean("nav_count_pinned", false));
|
|
|
|
swShowUnexposed.setChecked(prefs.getBoolean("show_unexposed", false));
|
|
|
|
swShowUnexposed.setChecked(prefs.getBoolean("show_unexposed", false));
|
|
|
|
swNavBarColorize.setChecked(prefs.getBoolean("navbar_colorize", false));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
swThreading.setChecked(prefs.getBoolean("threading", true));
|
|
|
|
swThreading.setChecked(prefs.getBoolean("threading", true));
|
|
|
|
swThreadingUnread.setChecked(prefs.getBoolean("threading_unread", false));
|
|
|
|
swThreadingUnread.setChecked(prefs.getBoolean("threading_unread", false));
|
|
|
|