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:
parent
dd86cdfec6
commit
bcb986451e
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user