|
|
|
@ -68,6 +68,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
|
private SwitchCompat swDateBold;
|
|
|
|
|
private SwitchCompat swNavBarColorize;
|
|
|
|
|
private SwitchCompat swPortrait2;
|
|
|
|
|
private SwitchCompat swPortrait2c;
|
|
|
|
|
private SwitchCompat swPortrait3;
|
|
|
|
|
private SwitchCompat swLandscape;
|
|
|
|
|
private SwitchCompat swLandscape3;
|
|
|
|
@ -156,7 +157,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
|
private final static String[] RESET_OPTIONS = new String[]{
|
|
|
|
|
"theme", "startup", "cards", "beige", "tabular_card_bg", "shadow_unread",
|
|
|
|
|
"date", "date_bold", "navbar_colorize",
|
|
|
|
|
"portrait2", "portrait3", "landscape", "landscape3", "nav_count",
|
|
|
|
|
"portrait2", "portrait2c", "portrait3", "landscape", "landscape3", "nav_count",
|
|
|
|
|
"threading", "threading_unread", "indentation", "seekbar", "actionbar", "actionbar_color",
|
|
|
|
|
"highlight_unread", "highlight_color", "color_stripe",
|
|
|
|
|
"avatars", "bimi", "gravatars", "favicons", "generated_icons", "identicons", "circular", "saturation", "brightness", "threshold",
|
|
|
|
@ -192,6 +193,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
|
swDateBold = view.findViewById(R.id.swDateBold);
|
|
|
|
|
swNavBarColorize = view.findViewById(R.id.swNavBarColorize);
|
|
|
|
|
swPortrait2 = view.findViewById(R.id.swPortrait2);
|
|
|
|
|
swPortrait2c = view.findViewById(R.id.swPortrait2c);
|
|
|
|
|
swPortrait3 = view.findViewById(R.id.swPortrait3);
|
|
|
|
|
swLandscape = view.findViewById(R.id.swLandscape);
|
|
|
|
|
swLandscape3 = view.findViewById(R.id.swLandscape3);
|
|
|
|
@ -359,6 +361,17 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
prefs.edit().putBoolean("portrait2", checked).apply();
|
|
|
|
|
if (checked)
|
|
|
|
|
prefs.edit().putBoolean("portrait2c", false).apply();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
swPortrait2c.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
prefs.edit().putBoolean("portrait2c", checked).apply();
|
|
|
|
|
if (checked)
|
|
|
|
|
prefs.edit().putBoolean("portrait2", false).apply();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
@ -1033,6 +1046,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
|
swDateBold.setEnabled(swDate.isChecked());
|
|
|
|
|
swNavBarColorize.setChecked(prefs.getBoolean("navbar_colorize", false));
|
|
|
|
|
swPortrait2.setChecked(prefs.getBoolean("portrait2", false));
|
|
|
|
|
swPortrait2c.setChecked(prefs.getBoolean("portrait2c", false) && !swPortrait2.isChecked());
|
|
|
|
|
swPortrait3.setChecked(prefs.getBoolean("portrait3", false));
|
|
|
|
|
swPortrait3.setEnabled(normal);
|
|
|
|
|
swLandscape.setChecked(prefs.getBoolean("landscape", true));
|
|
|
|
|