|
|
|
@ -66,6 +66,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
|
private SwitchCompat swBeige;
|
|
|
|
|
private SwitchCompat swShadow;
|
|
|
|
|
private SwitchCompat swDate;
|
|
|
|
|
private SwitchCompat swDateBold;
|
|
|
|
|
private SwitchCompat swNavBarColorize;
|
|
|
|
|
private SwitchCompat swPortrait2;
|
|
|
|
|
private SwitchCompat swLandscape;
|
|
|
|
@ -143,7 +144,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
|
|
|
|
|
|
private final static String[] RESET_OPTIONS = new String[]{
|
|
|
|
|
"theme", "startup", "cards", "beige", "shadow_unread",
|
|
|
|
|
"date", "navbar_colorize", "portrait2", "landscape", "landscape3",
|
|
|
|
|
"date", "date_bold", "navbar_colorize", "portrait2", "landscape", "landscape3",
|
|
|
|
|
"threading", "threading_unread", "indentation", "seekbar", "actionbar", "actionbar_color",
|
|
|
|
|
"highlight_unread", "highlight_color", "color_stripe",
|
|
|
|
|
"avatars", "gravatars", "favicons", "generated_icons", "identicons", "circular", "saturation", "brightness", "threshold",
|
|
|
|
@ -174,6 +175,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
|
swBeige = view.findViewById(R.id.swBeige);
|
|
|
|
|
swShadow = view.findViewById(R.id.swShadow);
|
|
|
|
|
swDate = view.findViewById(R.id.swDate);
|
|
|
|
|
swDateBold = view.findViewById(R.id.swDateBold);
|
|
|
|
|
swNavBarColorize = view.findViewById(R.id.swNavBarColorize);
|
|
|
|
|
swPortrait2 = view.findViewById(R.id.swPortrait2);
|
|
|
|
|
swLandscape = view.findViewById(R.id.swLandscape);
|
|
|
|
@ -299,6 +301,14 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
prefs.edit().putBoolean("date", checked).apply();
|
|
|
|
|
swDateBold.setEnabled(checked);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
swDateBold.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
prefs.edit().putBoolean("date_bold", checked).apply();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
@ -918,6 +928,8 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
|
swBeige.setEnabled(swCards.isChecked());
|
|
|
|
|
swShadow.setEnabled(swCards.isChecked());
|
|
|
|
|
swDate.setChecked(prefs.getBoolean("date", true));
|
|
|
|
|
swDateBold.setChecked(prefs.getBoolean("date_bold", false));
|
|
|
|
|
swDateBold.setEnabled(swDate.isChecked());
|
|
|
|
|
swNavBarColorize.setChecked(prefs.getBoolean("navbar_colorize", false));
|
|
|
|
|
swPortrait2.setChecked(prefs.getBoolean("portrait2", false));
|
|
|
|
|
swLandscape.setChecked(prefs.getBoolean("landscape", true));
|
|
|
|
|