mirror of https://github.com/M66B/FairEmail.git
Save addresses on pick contact/group
This commit is contained in:
parent
aced841156
commit
eaca1deb78
|
@ -2608,6 +2608,9 @@ public class FragmentCompose extends FragmentBase {
|
||||||
|
|
||||||
Bundle args = new Bundle();
|
Bundle args = new Bundle();
|
||||||
args.putLong("id", working);
|
args.putLong("id", working);
|
||||||
|
args.putString("to", etTo.getText().toString().trim());
|
||||||
|
args.putString("cc", etCc.getText().toString().trim());
|
||||||
|
args.putString("bcc", etBcc.getText().toString().trim());
|
||||||
args.putInt("requestCode", requestCode);
|
args.putInt("requestCode", requestCode);
|
||||||
args.putParcelable("uri", uri);
|
args.putParcelable("uri", uri);
|
||||||
|
|
||||||
|
@ -2615,6 +2618,9 @@ public class FragmentCompose extends FragmentBase {
|
||||||
@Override
|
@Override
|
||||||
protected EntityMessage onExecute(Context context, Bundle args) throws Throwable {
|
protected EntityMessage onExecute(Context context, Bundle args) throws Throwable {
|
||||||
long id = args.getLong("id");
|
long id = args.getLong("id");
|
||||||
|
String to = args.getString("to");
|
||||||
|
String cc = args.getString("cc");
|
||||||
|
String bcc = args.getString("bcc");
|
||||||
int requestCode = args.getInt("requestCode");
|
int requestCode = args.getInt("requestCode");
|
||||||
Uri uri = args.getParcelable("uri");
|
Uri uri = args.getParcelable("uri");
|
||||||
|
|
||||||
|
@ -2653,6 +2659,10 @@ public class FragmentCompose extends FragmentBase {
|
||||||
if (draft == null)
|
if (draft == null)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
draft.to = MessageHelper.parseAddresses(context, to);
|
||||||
|
draft.cc = MessageHelper.parseAddresses(context, cc);
|
||||||
|
draft.bcc = MessageHelper.parseAddresses(context, bcc);
|
||||||
|
|
||||||
Address[] address = null;
|
Address[] address = null;
|
||||||
if (requestCode == REQUEST_CONTACT_TO)
|
if (requestCode == REQUEST_CONTACT_TO)
|
||||||
address = draft.to;
|
address = draft.to;
|
||||||
|
@ -3744,12 +3754,19 @@ public class FragmentCompose extends FragmentBase {
|
||||||
if (args.getInt("target") > 0)
|
if (args.getInt("target") > 0)
|
||||||
grpAddresses.setVisibility(View.VISIBLE);
|
grpAddresses.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
|
args.putString("to", etTo.getText().toString().trim());
|
||||||
|
args.putString("cc", etCc.getText().toString().trim());
|
||||||
|
args.putString("bcc", etBcc.getText().toString().trim());
|
||||||
|
|
||||||
new SimpleTask<EntityMessage>() {
|
new SimpleTask<EntityMessage>() {
|
||||||
@Override
|
@Override
|
||||||
protected EntityMessage onExecute(Context context, Bundle args) throws Throwable {
|
protected EntityMessage onExecute(Context context, Bundle args) throws Throwable {
|
||||||
long id = args.getLong("id");
|
long id = args.getLong("id");
|
||||||
int target = args.getInt("target");
|
int target = args.getInt("target");
|
||||||
long group = args.getLong("group");
|
long group = args.getLong("group");
|
||||||
|
String to = args.getString("to");
|
||||||
|
String cc = args.getString("cc");
|
||||||
|
String bcc = args.getString("bcc");
|
||||||
|
|
||||||
EntityLog.log(context, "Selected group=" + group);
|
EntityLog.log(context, "Selected group=" + group);
|
||||||
|
|
||||||
|
@ -3794,6 +3811,10 @@ public class FragmentCompose extends FragmentBase {
|
||||||
if (draft == null)
|
if (draft == null)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
draft.to = MessageHelper.parseAddresses(context, to);
|
||||||
|
draft.cc = MessageHelper.parseAddresses(context, cc);
|
||||||
|
draft.bcc = MessageHelper.parseAddresses(context, bcc);
|
||||||
|
|
||||||
Address[] address = null;
|
Address[] address = null;
|
||||||
if (target == 0)
|
if (target == 0)
|
||||||
address = draft.to;
|
address = draft.to;
|
||||||
|
|
Loading…
Reference in New Issue