|
|
@ -68,6 +68,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
private SwitchCompat swDateBold;
|
|
|
|
private SwitchCompat swDateBold;
|
|
|
|
private SwitchCompat swNavBarColorize;
|
|
|
|
private SwitchCompat swNavBarColorize;
|
|
|
|
private SwitchCompat swPortrait2;
|
|
|
|
private SwitchCompat swPortrait2;
|
|
|
|
|
|
|
|
private SwitchCompat swPortrait3;
|
|
|
|
private SwitchCompat swLandscape;
|
|
|
|
private SwitchCompat swLandscape;
|
|
|
|
private SwitchCompat swLandscape3;
|
|
|
|
private SwitchCompat swLandscape3;
|
|
|
|
private SwitchCompat swNavMessageCount;
|
|
|
|
private SwitchCompat swNavMessageCount;
|
|
|
@ -154,7 +155,8 @@ 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", "nav_count",
|
|
|
|
"date", "date_bold", "navbar_colorize",
|
|
|
|
|
|
|
|
"portrait2", "portrait3", "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",
|
|
|
@ -190,6 +192,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
swDateBold = view.findViewById(R.id.swDateBold);
|
|
|
|
swDateBold = view.findViewById(R.id.swDateBold);
|
|
|
|
swNavBarColorize = view.findViewById(R.id.swNavBarColorize);
|
|
|
|
swNavBarColorize = view.findViewById(R.id.swNavBarColorize);
|
|
|
|
swPortrait2 = view.findViewById(R.id.swPortrait2);
|
|
|
|
swPortrait2 = view.findViewById(R.id.swPortrait2);
|
|
|
|
|
|
|
|
swPortrait3 = view.findViewById(R.id.swPortrait3);
|
|
|
|
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);
|
|
|
|
swNavMessageCount = view.findViewById(R.id.swNavMessageCount);
|
|
|
@ -359,6 +362,13 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
swPortrait3.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
|
|
|
prefs.edit().putBoolean("portrait3", checked).apply();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
swLandscape.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
swLandscape.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
@ -1023,6 +1033,8 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
swDateBold.setEnabled(swDate.isChecked());
|
|
|
|
swDateBold.setEnabled(swDate.isChecked());
|
|
|
|
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));
|
|
|
|
|
|
|
|
swPortrait3.setChecked(prefs.getBoolean("portrait3", false));
|
|
|
|
|
|
|
|
swPortrait3.setEnabled(normal);
|
|
|
|
swLandscape.setChecked(prefs.getBoolean("landscape", true));
|
|
|
|
swLandscape.setChecked(prefs.getBoolean("landscape", true));
|
|
|
|
swLandscape.setEnabled(normal);
|
|
|
|
swLandscape.setEnabled(normal);
|
|
|
|
swLandscape3.setChecked(prefs.getBoolean("landscape3", true));
|
|
|
|
swLandscape3.setChecked(prefs.getBoolean("landscape3", true));
|
|
|
|