1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 09:47:13 +00:00

Fixed editing rules from the report spam dialog

This commit is contained in:
M66B 2020-07-22 10:10:40 +02:00
parent 907ab12f78
commit 44cbd5f50a

View file

@ -3748,6 +3748,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
Bundle aargs = new Bundle();
aargs.putLong("id", message.id);
aargs.putLong("account", message.account);
aargs.putInt("protocol", message.accountProtocol);
aargs.putLong("folder", message.folder);
aargs.putString("from", MessageHelper.formatAddresses(message.from));
@ -6065,6 +6066,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
Bundle args = getArguments();
final long account = args.getLong("account");
final long folder = args.getLong("folder");
final int protocol = args.getInt("protocol");
final String from = args.getString("from");
View view = LayoutInflater.from(getContext()).inflate(R.layout.dialog_junk, null);
@ -6100,7 +6102,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
lbm.sendBroadcast(
new Intent(ActivityView.ACTION_EDIT_RULES)
.putExtra("account", account)
.putExtra("folder", folder));
.putExtra("folder", folder)
.putExtra("protocol", protocol));
dismiss();
}
});