1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04:00

Update issue 2379

Status: Fixed
Extracted Intent.ACTION_SENDTO handling in a separate block to extract data from URI (as opposed to ACTION_SEND which uses Intent extras to pass data)
This commit is contained in:
Fiouz 2010-10-02 08:14:12 +00:00
parent f6064ff19f
commit bb64a0ab01

View File

@ -477,9 +477,18 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
}
}
}
else if (Intent.ACTION_SENDTO.equals(action))
{
final Uri uri = intent.getData();
// look for recipient address
if (uri != null && "mailto".equals(uri.getScheme()))
{
initializeFromMailTo(uri.toString());
}
}
//TODO: Use constant Intent.ACTION_SEND_MULTIPLE once we drop Android 1.5 support
else if (Intent.ACTION_SEND.equals(action)
|| Intent.ACTION_SENDTO.equals(action)
|| "android.intent.action.SEND_MULTIPLE".equals(action))
{
/*