From bcb986451e6a23d22e1d94969e823332cfb5f168 Mon Sep 17 00:00:00 2001 From: Daniel Applebaum Date: Tue, 8 Jun 2010 00:45:07 +0000 Subject: [PATCH] Fixes Issue 1728 Use the default account when composing from search results. --- src/com/fsck/k9/activity/MessageCompose.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/fsck/k9/activity/MessageCompose.java b/src/com/fsck/k9/activity/MessageCompose.java index f522d7207..f86d460fe 100644 --- a/src/com/fsck/k9/activity/MessageCompose.java +++ b/src/com/fsck/k9/activity/MessageCompose.java @@ -180,6 +180,10 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc */ public static void actionCompose(Context context, Account account) { + if (account == null) + { + account = Preferences.getPreferences(context).getDefaultAccount(); + } Intent i = new Intent(context, MessageCompose.class); i.putExtra(EXTRA_ACCOUNT, account.getUuid()); context.startActivity(i);