@ -61,6 +61,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
private Button btnTheme ;
private Spinner spStartup ;
private SwitchCompat swCards ;
private SwitchCompat swBeige ;
private SwitchCompat swDate ;
private SwitchCompat swNavBarColorize ;
private SwitchCompat swPortrait2 ;
@ -127,7 +128,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
private SwitchCompat swAuthentication ;
private final static String [ ] RESET_OPTIONS = new String [ ] {
"theme" , "startup" , "cards" , " date", "navbar_colorize" , "portrait2" , "landscape" , "landscape3" ,
"theme" , "startup" , "cards" , " beige", " date", "navbar_colorize" , "portrait2" , "landscape" , "landscape3" ,
"threading" , "threading_unread" , "indentation" , "seekbar" , "actionbar" , "actionbar_color" ,
"highlight_unread" , "color_stripe" ,
"avatars" , "gravatars" , "favicons" , "generated_icons" , "identicons" , "circular" , "saturation" , "brightness" , "threshold" ,
@ -155,6 +156,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
btnTheme = view . findViewById ( R . id . btnTheme ) ;
spStartup = view . findViewById ( R . id . spStartup ) ;
swCards = view . findViewById ( R . id . swCards ) ;
swBeige = view . findViewById ( R . id . swBeige ) ;
swDate = view . findViewById ( R . id . swDate ) ;
swNavBarColorize = view . findViewById ( R . id . swNavBarColorize ) ;
swPortrait2 = view . findViewById ( R . id . swPortrait2 ) ;
@ -247,10 +249,18 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
@Override
public void onCheckedChanged ( CompoundButton compoundButton , boolean checked ) {
prefs . edit ( ) . putBoolean ( "cards" , checked ) . apply ( ) ;
swBeige . setEnabled ( checked ) ;
swIndentation . setEnabled ( checked ) ;
}
} ) ;
swBeige . setOnCheckedChangeListener ( new CompoundButton . OnCheckedChangeListener ( ) {
@Override
public void onCheckedChanged ( CompoundButton compoundButton , boolean checked ) {
prefs . edit ( ) . putBoolean ( "beige" , checked ) . apply ( ) ;
}
} ) ;
swDate . setOnCheckedChangeListener ( new CompoundButton . OnCheckedChangeListener ( ) {
@Override
public void onCheckedChanged ( CompoundButton compoundButton , boolean checked ) {
@ -809,6 +819,8 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
}
swCards . setChecked ( prefs . getBoolean ( "cards" , true ) ) ;
swBeige . setChecked ( prefs . getBoolean ( "beige" , false ) ) ;
swBeige . setEnabled ( swCards . isChecked ( ) ) ;
swDate . setChecked ( prefs . getBoolean ( "date" , true ) ) ;
swNavBarColorize . setChecked ( prefs . getBoolean ( "navbar_colorize" , false ) ) ;
swPortrait2 . setChecked ( prefs . getBoolean ( "portrait2" , false ) ) ;