1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 02:07:12 +00:00

Charset: reset size/pos

This commit is contained in:
M66B 2022-06-11 08:29:03 +02:00
parent d4b8911e1f
commit d571d6f93d

View file

@ -6097,6 +6097,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
@Override
public boolean onMenuItemClick(MenuItem item) {
properties.setSize(message.id, null);
properties.setHeight(message.id, null);
properties.setPosition(message.id, null);
args.putString("charset", item.getIntent().getStringExtra("charset"));
new SimpleTask<Void>() {
@ -6113,7 +6117,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
if (message == null)
return null;
db.message().resetMessageContent(id);
db.message().resetMessageContent(message.id);
EntityOperation.queue(context, message, EntityOperation.BODY, null, charset);
db.setTransactionSuccessful();