|
|
@ -804,6 +804,10 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
EntityIdentity ident = (EntityIdentity) spIdentity.getSelectedItem();
|
|
|
|
|
|
|
|
if (ident == null)
|
|
|
|
|
|
|
|
throw new IllegalArgumentException(getString(R.string.title_from_missing));
|
|
|
|
|
|
|
|
|
|
|
|
String to = etTo.getText().toString();
|
|
|
|
String to = etTo.getText().toString();
|
|
|
|
InternetAddress ato[] = (TextUtils.isEmpty(to) ? new InternetAddress[0] : InternetAddress.parse(to));
|
|
|
|
InternetAddress ato[] = (TextUtils.isEmpty(to) ? new InternetAddress[0] : InternetAddress.parse(to));
|
|
|
|
if (ato.length == 0)
|
|
|
|
if (ato.length == 0)
|
|
|
@ -813,7 +817,8 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
final TextView tvMessage = dview.findViewById(R.id.tvMessage);
|
|
|
|
final TextView tvMessage = dview.findViewById(R.id.tvMessage);
|
|
|
|
final CheckBox cbNotAgain = dview.findViewById(R.id.cbNotAgain);
|
|
|
|
final CheckBox cbNotAgain = dview.findViewById(R.id.cbNotAgain);
|
|
|
|
|
|
|
|
|
|
|
|
tvMessage.setText(getString(R.string.title_ask_send, MessageHelper.formatAddressesShort(ato)));
|
|
|
|
tvMessage.setText(getString(R.string.title_ask_send_via,
|
|
|
|
|
|
|
|
MessageHelper.formatAddressesShort(ato), ident.email));
|
|
|
|
|
|
|
|
|
|
|
|
new DialogBuilderLifecycle(getContext(), getViewLifecycleOwner())
|
|
|
|
new DialogBuilderLifecycle(getContext(), getViewLifecycleOwner())
|
|
|
|
.setView(dview)
|
|
|
|
.setView(dview)
|
|
|
|