|
|
@ -283,6 +283,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
swBeige.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
swBeige.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
|
|
|
getActivity().getIntent().putExtra("tab", "display");
|
|
|
|
prefs.edit().putBoolean("beige", checked).apply();
|
|
|
|
prefs.edit().putBoolean("beige", checked).apply();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -854,8 +855,13 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// Initialize
|
|
|
|
// Initialize
|
|
|
|
if (!Helper.isDarkTheme(getContext()))
|
|
|
|
if (!Helper.isDarkTheme(getContext())) {
|
|
|
|
view.setBackgroundColor(ContextCompat.getColor(getContext(), R.color.lightColorBackground_cards_beige));
|
|
|
|
boolean beige = prefs.getBoolean("beige", true);
|
|
|
|
|
|
|
|
view.setBackgroundColor(ContextCompat.getColor(getContext(), beige
|
|
|
|
|
|
|
|
? R.color.lightColorBackground_cards_beige
|
|
|
|
|
|
|
|
: R.color.lightColorBackground_cards));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
PreferenceManager.getDefaultSharedPreferences(getContext()).registerOnSharedPreferenceChangeListener(this);
|
|
|
|
PreferenceManager.getDefaultSharedPreferences(getContext()).registerOnSharedPreferenceChangeListener(this);
|
|
|
|
|
|
|
|
|
|
|
|
return view;
|
|
|
|
return view;
|
|
|
|