1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-26 01:28:50 -05:00

Fixes Issue 1728

Use the default account when composing from search results.
This commit is contained in:
Daniel Applebaum 2010-06-08 00:45:07 +00:00
parent dd86cdfec6
commit bcb986451e

View File

@ -180,6 +180,10 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
*/ */
public static void actionCompose(Context context, Account account) public static void actionCompose(Context context, Account account)
{ {
if (account == null)
{
account = Preferences.getPreferences(context).getDefaultAccount();
}
Intent i = new Intent(context, MessageCompose.class); Intent i = new Intent(context, MessageCompose.class);
i.putExtra(EXTRA_ACCOUNT, account.getUuid()); i.putExtra(EXTRA_ACCOUNT, account.getUuid());
context.startActivity(i); context.startActivity(i);