Allow auto image for original messages

pull/153/head
M66B 6 years ago
parent b8219720c7
commit 158a87fb75

@ -3027,7 +3027,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
this.flags = prefs.getBoolean("flags", true); this.flags = prefs.getBoolean("flags", true);
this.preview = prefs.getBoolean("preview", false); this.preview = prefs.getBoolean("preview", false);
this.autohtml = prefs.getBoolean("autohtml", false); this.autohtml = prefs.getBoolean("autohtml", false);
this.autoimages = (!this.autohtml && prefs.getBoolean("autoimages", false)); this.autoimages = prefs.getBoolean("autoimages", false);
this.debug = prefs.getBoolean("debug", false); this.debug = prefs.getBoolean("debug", false);
this.textSize = Helper.getTextSize(context, zoom); this.textSize = Helper.getTextSize(context, zoom);

@ -385,7 +385,6 @@ public class FragmentOptions extends FragmentBase implements SharedPreferences.O
@Override @Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
prefs.edit().putBoolean("autohtml", checked).apply(); prefs.edit().putBoolean("autohtml", checked).apply();
swImages.setEnabled(!checked);
} }
}); });
@ -638,7 +637,6 @@ public class FragmentOptions extends FragmentBase implements SharedPreferences.O
swHtml.setChecked(prefs.getBoolean("autohtml", false)); swHtml.setChecked(prefs.getBoolean("autohtml", false));
swTracking.setChecked(prefs.getBoolean("remove_tracking", true)); swTracking.setChecked(prefs.getBoolean("remove_tracking", true));
swImages.setChecked(prefs.getBoolean("autoimages", false)); swImages.setChecked(prefs.getBoolean("autoimages", false));
swImages.setEnabled(!swHtml.isChecked());
swActionbar.setChecked(prefs.getBoolean("actionbar", true)); swActionbar.setChecked(prefs.getBoolean("actionbar", true));
swPull.setChecked(prefs.getBoolean("pull", true)); swPull.setChecked(prefs.getBoolean("pull", true));

Loading…
Cancel
Save