|
|
@ -64,6 +64,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
private Spinner spStartup;
|
|
|
|
private Spinner spStartup;
|
|
|
|
private SwitchCompat swCards;
|
|
|
|
private SwitchCompat swCards;
|
|
|
|
private SwitchCompat swBeige;
|
|
|
|
private SwitchCompat swBeige;
|
|
|
|
|
|
|
|
private SwitchCompat swShadow;
|
|
|
|
private SwitchCompat swDate;
|
|
|
|
private SwitchCompat swDate;
|
|
|
|
private SwitchCompat swNavBarColorize;
|
|
|
|
private SwitchCompat swNavBarColorize;
|
|
|
|
private SwitchCompat swPortrait2;
|
|
|
|
private SwitchCompat swPortrait2;
|
|
|
@ -139,7 +140,8 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
private NumberFormat NF = NumberFormat.getNumberInstance();
|
|
|
|
private NumberFormat NF = NumberFormat.getNumberInstance();
|
|
|
|
|
|
|
|
|
|
|
|
private final static String[] RESET_OPTIONS = new String[]{
|
|
|
|
private final static String[] RESET_OPTIONS = new String[]{
|
|
|
|
"theme", "startup", "cards", "beige", "date", "navbar_colorize", "portrait2", "landscape", "landscape3",
|
|
|
|
"theme", "startup", "cards", "beige", "shadow_unread",
|
|
|
|
|
|
|
|
"date", "navbar_colorize", "portrait2", "landscape", "landscape3",
|
|
|
|
"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", "gravatars", "favicons", "generated_icons", "identicons", "circular", "saturation", "brightness", "threshold",
|
|
|
|
"avatars", "gravatars", "favicons", "generated_icons", "identicons", "circular", "saturation", "brightness", "threshold",
|
|
|
@ -168,6 +170,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
spStartup = view.findViewById(R.id.spStartup);
|
|
|
|
spStartup = view.findViewById(R.id.spStartup);
|
|
|
|
swCards = view.findViewById(R.id.swCards);
|
|
|
|
swCards = view.findViewById(R.id.swCards);
|
|
|
|
swBeige = view.findViewById(R.id.swBeige);
|
|
|
|
swBeige = view.findViewById(R.id.swBeige);
|
|
|
|
|
|
|
|
swShadow = view.findViewById(R.id.swShadow);
|
|
|
|
swDate = view.findViewById(R.id.swDate);
|
|
|
|
swDate = view.findViewById(R.id.swDate);
|
|
|
|
swNavBarColorize = view.findViewById(R.id.swNavBarColorize);
|
|
|
|
swNavBarColorize = view.findViewById(R.id.swNavBarColorize);
|
|
|
|
swPortrait2 = view.findViewById(R.id.swPortrait2);
|
|
|
|
swPortrait2 = view.findViewById(R.id.swPortrait2);
|
|
|
@ -268,6 +271,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
prefs.edit().putBoolean("cards", checked).apply();
|
|
|
|
prefs.edit().putBoolean("cards", checked).apply();
|
|
|
|
swBeige.setEnabled(checked);
|
|
|
|
swBeige.setEnabled(checked);
|
|
|
|
|
|
|
|
swShadow.setEnabled(checked);
|
|
|
|
swIndentation.setEnabled(checked);
|
|
|
|
swIndentation.setEnabled(checked);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -279,6 +283,13 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
swShadow.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
|
|
|
prefs.edit().putBoolean("shadow_unread", checked).apply();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
swDate.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
swDate.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
@ -887,7 +898,9 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
|
|
|
|
|
|
|
|
swCards.setChecked(prefs.getBoolean("cards", true));
|
|
|
|
swCards.setChecked(prefs.getBoolean("cards", true));
|
|
|
|
swBeige.setChecked(prefs.getBoolean("beige", true));
|
|
|
|
swBeige.setChecked(prefs.getBoolean("beige", true));
|
|
|
|
|
|
|
|
swShadow.setChecked(prefs.getBoolean("shadow_unread", false));
|
|
|
|
swBeige.setEnabled(swCards.isChecked());
|
|
|
|
swBeige.setEnabled(swCards.isChecked());
|
|
|
|
|
|
|
|
swShadow.setEnabled(swCards.isChecked());
|
|
|
|
swDate.setChecked(prefs.getBoolean("date", true));
|
|
|
|
swDate.setChecked(prefs.getBoolean("date", true));
|
|
|
|
swNavBarColorize.setChecked(prefs.getBoolean("navbar_colorize", false));
|
|
|
|
swNavBarColorize.setChecked(prefs.getBoolean("navbar_colorize", false));
|
|
|
|
swPortrait2.setChecked(prefs.getBoolean("portrait2", false));
|
|
|
|
swPortrait2.setChecked(prefs.getBoolean("portrait2", false));
|
|
|
|