|
|
@ -88,6 +88,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
private TextView tvGravatarsHint;
|
|
|
|
private TextView tvGravatarsHint;
|
|
|
|
private SwitchCompat swGravatars;
|
|
|
|
private SwitchCompat swGravatars;
|
|
|
|
private SwitchCompat swBimi;
|
|
|
|
private SwitchCompat swBimi;
|
|
|
|
|
|
|
|
private SwitchCompat swBimiVmc;
|
|
|
|
private ImageButton ibBimi;
|
|
|
|
private ImageButton ibBimi;
|
|
|
|
private SwitchCompat swFavicons;
|
|
|
|
private SwitchCompat swFavicons;
|
|
|
|
private TextView tvFaviconsHint;
|
|
|
|
private TextView tvFaviconsHint;
|
|
|
@ -155,7 +156,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
"date", "date_bold", "navbar_colorize", "portrait2", "landscape", "landscape3",
|
|
|
|
"date", "date_bold", "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", "bimi", "favicons", "generated_icons", "identicons", "circular", "saturation", "brightness", "threshold",
|
|
|
|
"avatars", "gravatars", "bimi", "bimi_vmc", "favicons", "generated_icons", "identicons", "circular", "saturation", "brightness", "threshold",
|
|
|
|
"email_format", "prefer_contact", "only_contact", "distinguish_contacts", "show_recipients",
|
|
|
|
"email_format", "prefer_contact", "only_contact", "distinguish_contacts", "show_recipients",
|
|
|
|
"subject_top", "font_size_sender", "font_size_subject", "subject_italic", "highlight_subject", "subject_ellipsize",
|
|
|
|
"subject_top", "font_size_sender", "font_size_subject", "subject_italic", "highlight_subject", "subject_ellipsize",
|
|
|
|
"keywords_header", "labels_header", "flags", "flags_background",
|
|
|
|
"keywords_header", "labels_header", "flags", "flags_background",
|
|
|
@ -204,6 +205,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
swGravatars = view.findViewById(R.id.swGravatars);
|
|
|
|
swGravatars = view.findViewById(R.id.swGravatars);
|
|
|
|
tvGravatarsHint = view.findViewById(R.id.tvGravatarsHint);
|
|
|
|
tvGravatarsHint = view.findViewById(R.id.tvGravatarsHint);
|
|
|
|
swBimi = view.findViewById(R.id.swBimi);
|
|
|
|
swBimi = view.findViewById(R.id.swBimi);
|
|
|
|
|
|
|
|
swBimiVmc = view.findViewById(R.id.swBimiVmc);
|
|
|
|
ibBimi = view.findViewById(R.id.ibBimi);
|
|
|
|
ibBimi = view.findViewById(R.id.ibBimi);
|
|
|
|
swFavicons = view.findViewById(R.id.swFavicons);
|
|
|
|
swFavicons = view.findViewById(R.id.swFavicons);
|
|
|
|
tvFaviconsHint = view.findViewById(R.id.tvFaviconsHint);
|
|
|
|
tvFaviconsHint = view.findViewById(R.id.tvFaviconsHint);
|
|
|
@ -488,6 +490,15 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
prefs.edit().putBoolean("bimi", checked).apply();
|
|
|
|
prefs.edit().putBoolean("bimi", checked).apply();
|
|
|
|
|
|
|
|
swBimiVmc.setEnabled(checked);
|
|
|
|
|
|
|
|
ContactInfo.clearCache(getContext());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
swBimiVmc.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
|
|
|
prefs.edit().putBoolean("bimi_vmc", checked).apply();
|
|
|
|
ContactInfo.clearCache(getContext());
|
|
|
|
ContactInfo.clearCache(getContext());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -1018,6 +1029,8 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
swAvatars.setChecked(prefs.getBoolean("avatars", true));
|
|
|
|
swAvatars.setChecked(prefs.getBoolean("avatars", true));
|
|
|
|
swGravatars.setChecked(prefs.getBoolean("gravatars", false));
|
|
|
|
swGravatars.setChecked(prefs.getBoolean("gravatars", false));
|
|
|
|
swBimi.setChecked(prefs.getBoolean("bimi", false));
|
|
|
|
swBimi.setChecked(prefs.getBoolean("bimi", false));
|
|
|
|
|
|
|
|
swBimiVmc.setChecked(prefs.getBoolean("bimi_vmc", false));
|
|
|
|
|
|
|
|
swBimiVmc.setEnabled(swBimi.isChecked());
|
|
|
|
swFavicons.setChecked(prefs.getBoolean("favicons", false));
|
|
|
|
swFavicons.setChecked(prefs.getBoolean("favicons", false));
|
|
|
|
swGeneratedIcons.setChecked(prefs.getBoolean("generated_icons", true));
|
|
|
|
swGeneratedIcons.setChecked(prefs.getBoolean("generated_icons", true));
|
|
|
|
swIdenticons.setChecked(prefs.getBoolean("identicons", false));
|
|
|
|
swIdenticons.setChecked(prefs.getBoolean("identicons", false));
|
|
|
|