|
|
@ -73,6 +73,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
private SwitchCompat swPortrait2;
|
|
|
|
private SwitchCompat swPortrait2;
|
|
|
|
private SwitchCompat swLandscape;
|
|
|
|
private SwitchCompat swLandscape;
|
|
|
|
private SwitchCompat swLandscape3;
|
|
|
|
private SwitchCompat swLandscape3;
|
|
|
|
|
|
|
|
private SwitchCompat swNavMessageCount;
|
|
|
|
|
|
|
|
|
|
|
|
private SwitchCompat swThreading;
|
|
|
|
private SwitchCompat swThreading;
|
|
|
|
private SwitchCompat swThreadingUnread;
|
|
|
|
private SwitchCompat swThreadingUnread;
|
|
|
@ -155,7 +156,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
|
|
|
|
|
|
|
|
private final static String[] RESET_OPTIONS = new String[]{
|
|
|
|
private final static String[] RESET_OPTIONS = new String[]{
|
|
|
|
"theme", "startup", "cards", "beige", "tabular_card_bg", "shadow_unread",
|
|
|
|
"theme", "startup", "cards", "beige", "tabular_card_bg", "shadow_unread",
|
|
|
|
"date", "date_bold", "navbar_colorize", "portrait2", "landscape", "landscape3",
|
|
|
|
"date", "date_bold", "navbar_colorize", "portrait2", "landscape", "landscape3", "nav_count",
|
|
|
|
"threading", "threading_unread", "indentation", "seekbar", "actionbar", "actionbar_color",
|
|
|
|
"threading", "threading_unread", "indentation", "seekbar", "actionbar", "actionbar_color",
|
|
|
|
"highlight_unread", "highlight_color", "color_stripe",
|
|
|
|
"highlight_unread", "highlight_color", "color_stripe",
|
|
|
|
"avatars", "bimi", "gravatars", "favicons", "generated_icons", "identicons", "circular", "saturation", "brightness", "threshold",
|
|
|
|
"avatars", "bimi", "gravatars", "favicons", "generated_icons", "identicons", "circular", "saturation", "brightness", "threshold",
|
|
|
@ -193,6 +194,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
swPortrait2 = view.findViewById(R.id.swPortrait2);
|
|
|
|
swPortrait2 = view.findViewById(R.id.swPortrait2);
|
|
|
|
swLandscape = view.findViewById(R.id.swLandscape);
|
|
|
|
swLandscape = view.findViewById(R.id.swLandscape);
|
|
|
|
swLandscape3 = view.findViewById(R.id.swLandscape3);
|
|
|
|
swLandscape3 = view.findViewById(R.id.swLandscape3);
|
|
|
|
|
|
|
|
swNavMessageCount = view.findViewById(R.id.swNavMessageCount);
|
|
|
|
|
|
|
|
|
|
|
|
swThreading = view.findViewById(R.id.swThreading);
|
|
|
|
swThreading = view.findViewById(R.id.swThreading);
|
|
|
|
swThreadingUnread = view.findViewById(R.id.swThreadingUnread);
|
|
|
|
swThreadingUnread = view.findViewById(R.id.swThreadingUnread);
|
|
|
@ -372,6 +374,13 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
swNavMessageCount.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
|
|
|
prefs.edit().putBoolean("nav_count", checked).apply();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
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) {
|
|
|
@ -1022,6 +1031,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
swLandscape.setEnabled(normal);
|
|
|
|
swLandscape.setEnabled(normal);
|
|
|
|
swLandscape3.setChecked(prefs.getBoolean("landscape3", true));
|
|
|
|
swLandscape3.setChecked(prefs.getBoolean("landscape3", true));
|
|
|
|
swLandscape3.setEnabled(normal);
|
|
|
|
swLandscape3.setEnabled(normal);
|
|
|
|
|
|
|
|
swNavMessageCount.setChecked(prefs.getBoolean("nav_count", 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));
|
|
|
|