|
|
@ -97,13 +97,19 @@ public class ActivityCompose extends ActivityBase implements FragmentManager.OnB
|
|
|
|
// https://www.ietf.org/rfc/rfc2368.txt
|
|
|
|
// https://www.ietf.org/rfc/rfc2368.txt
|
|
|
|
MailTo mailto = MailTo.parse(uri.toString());
|
|
|
|
MailTo mailto = MailTo.parse(uri.toString());
|
|
|
|
|
|
|
|
|
|
|
|
List<String> to = sanitize(new String[]{mailto.getTo()});
|
|
|
|
String _to = mailto.getTo();
|
|
|
|
if (to.size() == 1)
|
|
|
|
if (_to != null) {
|
|
|
|
args.putString("to", to.get(0));
|
|
|
|
List<String> to = sanitize(new String[]{_to});
|
|
|
|
|
|
|
|
if (to.size() == 1)
|
|
|
|
|
|
|
|
args.putString("to", to.get(0));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
List<String> cc = sanitize(new String[]{mailto.getCc()});
|
|
|
|
String _cc = mailto.getCc();
|
|
|
|
if (cc.size() == 1)
|
|
|
|
if (_cc != null) {
|
|
|
|
args.putString("cc", cc.get(0));
|
|
|
|
List<String> cc = sanitize(new String[]{_cc});
|
|
|
|
|
|
|
|
if (cc.size() == 1)
|
|
|
|
|
|
|
|
args.putString("cc", cc.get(0));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
String subject = mailto.getSubject();
|
|
|
|
String subject = mailto.getSubject();
|
|
|
|
if (subject != null)
|
|
|
|
if (subject != null)
|
|
|
|