mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 16:16:33 +02:00
Added option to disable printing images
This commit is contained in:
@@ -6923,6 +6923,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
|
||||
View dview = LayoutInflater.from(context).inflate(R.layout.dialog_print, null);
|
||||
CheckBox cbHeader = dview.findViewById(R.id.cbHeader);
|
||||
CheckBox cbImages = dview.findViewById(R.id.cbImages);
|
||||
CheckBox cbNotAgain = dview.findViewById(R.id.cbNotAgain);
|
||||
|
||||
cbHeader.setChecked(prefs.getBoolean("print_html_header", true));
|
||||
@@ -6933,6 +6934,14 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
}
|
||||
});
|
||||
|
||||
cbImages.setChecked(prefs.getBoolean("print_html_images", true));
|
||||
cbImages.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
||||
prefs.edit().putBoolean("print_html_images", isChecked).apply();
|
||||
}
|
||||
});
|
||||
|
||||
cbNotAgain.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
||||
|
||||
Reference in New Issue
Block a user