|
|
@ -127,6 +127,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
private SwitchCompat swFaviconsPartial;
|
|
|
|
private SwitchCompat swFaviconsPartial;
|
|
|
|
private SwitchCompat swFaviconsManifest;
|
|
|
|
private SwitchCompat swFaviconsManifest;
|
|
|
|
private TextView tvFaviconsHint;
|
|
|
|
private TextView tvFaviconsHint;
|
|
|
|
|
|
|
|
private SwitchCompat swFaviconsDmarc;
|
|
|
|
private SwitchCompat swGeneratedIcons;
|
|
|
|
private SwitchCompat swGeneratedIcons;
|
|
|
|
private SwitchCompat swIdenticons;
|
|
|
|
private SwitchCompat swIdenticons;
|
|
|
|
private SwitchCompat swCircular;
|
|
|
|
private SwitchCompat swCircular;
|
|
|
@ -217,7 +218,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
"hide_toolbar", "edge_to_edge", "nav_options", "nav_categories", "nav_last_sync", "nav_count", "nav_unseen_drafts", "nav_count_pinned", "show_unexposed",
|
|
|
|
"hide_toolbar", "edge_to_edge", "nav_options", "nav_categories", "nav_last_sync", "nav_count", "nav_unseen_drafts", "nav_count_pinned", "show_unexposed",
|
|
|
|
"threading", "threading_unread", "indentation", "seekbar", "actionbar", "actionbar_swap", "actionbar_color",
|
|
|
|
"threading", "threading_unread", "indentation", "seekbar", "actionbar", "actionbar_swap", "actionbar_color",
|
|
|
|
"highlight_unread", "highlight_color", "color_stripe", "color_stripe_wide",
|
|
|
|
"highlight_unread", "highlight_color", "color_stripe", "color_stripe_wide",
|
|
|
|
"avatars", "bimi", "bimi_vmc", "gravatars", "libravatars", "favicons", "favicons_partial", "favicons_manifest", "generated_icons", "identicons",
|
|
|
|
"avatars", "bimi", "bimi_vmc", "gravatars", "libravatars", "favicons", "favicons_partial", "favicons_manifest", "favicons_dmarc", "generated_icons", "identicons",
|
|
|
|
"circular", "saturation", "brightness", "threshold",
|
|
|
|
"circular", "saturation", "brightness", "threshold",
|
|
|
|
"email_format", "prefer_contact", "only_contact", "distinguish_contacts", "show_recipients", "reverse_addresses",
|
|
|
|
"email_format", "prefer_contact", "only_contact", "distinguish_contacts", "show_recipients", "reverse_addresses",
|
|
|
|
"font_size_sender", "sender_ellipsize",
|
|
|
|
"font_size_sender", "sender_ellipsize",
|
|
|
@ -306,6 +307,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
swFaviconsPartial = view.findViewById(R.id.swFaviconsPartial);
|
|
|
|
swFaviconsPartial = view.findViewById(R.id.swFaviconsPartial);
|
|
|
|
swFaviconsManifest = view.findViewById(R.id.swFaviconsManifest);
|
|
|
|
swFaviconsManifest = view.findViewById(R.id.swFaviconsManifest);
|
|
|
|
tvFaviconsHint = view.findViewById(R.id.tvFaviconsHint);
|
|
|
|
tvFaviconsHint = view.findViewById(R.id.tvFaviconsHint);
|
|
|
|
|
|
|
|
swFaviconsDmarc = view.findViewById(R.id.swFaviconsDmarc);
|
|
|
|
swGeneratedIcons = view.findViewById(R.id.swGeneratedIcons);
|
|
|
|
swGeneratedIcons = view.findViewById(R.id.swGeneratedIcons);
|
|
|
|
swIdenticons = view.findViewById(R.id.swIdenticons);
|
|
|
|
swIdenticons = view.findViewById(R.id.swIdenticons);
|
|
|
|
swCircular = view.findViewById(R.id.swCircular);
|
|
|
|
swCircular = view.findViewById(R.id.swCircular);
|
|
|
@ -916,6 +918,14 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
swFaviconsDmarc.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
|
|
|
prefs.edit().putBoolean("favicons_dmarc", checked).apply();
|
|
|
|
|
|
|
|
ContactInfo.clearCache(compoundButton.getContext());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
swGeneratedIcons.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
swGeneratedIcons.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
@ -1615,6 +1625,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
swFaviconsPartial.setEnabled(swFavicons.isChecked());
|
|
|
|
swFaviconsPartial.setEnabled(swFavicons.isChecked());
|
|
|
|
swFaviconsManifest.setChecked(prefs.getBoolean("favicons_manifest", false));
|
|
|
|
swFaviconsManifest.setChecked(prefs.getBoolean("favicons_manifest", false));
|
|
|
|
swFaviconsManifest.setEnabled(swFavicons.isChecked());
|
|
|
|
swFaviconsManifest.setEnabled(swFavicons.isChecked());
|
|
|
|
|
|
|
|
swFaviconsDmarc.setChecked(prefs.getBoolean("favicons_dmarc", 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));
|
|
|
|
swIdenticons.setEnabled(swGeneratedIcons.isChecked());
|
|
|
|
swIdenticons.setEnabled(swGeneratedIcons.isChecked());
|
|
|
|