From cbb2abc80ed6584d587baba51b2ecdb11861e714 Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Fri, 22 Apr 2011 18:13:47 -0700 Subject: [PATCH] Fix problem w/ ExchangeSender instantiation Bug: 4334119 Change-Id: Ic900d08a3826754d2807ca84cbb9b8f2f4e28fc3 --- src/com/android/email/mail/transport/ExchangeSender.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/com/android/email/mail/transport/ExchangeSender.java b/src/com/android/email/mail/transport/ExchangeSender.java index 7fcf5c55f..bacfbdf30 100644 --- a/src/com/android/email/mail/transport/ExchangeSender.java +++ b/src/com/android/email/mail/transport/ExchangeSender.java @@ -17,6 +17,8 @@ package com.android.email.mail.transport; import com.android.email.mail.Sender; +import com.android.emailcommon.mail.MessagingException; +import com.android.emailcommon.provider.EmailContent.Account; import android.content.Context; @@ -29,11 +31,11 @@ public class ExchangeSender extends Sender { /** * Factory method. */ - public static Sender newInstance(Context context, String uri) { - return new ExchangeSender(context, uri); + public static Sender newInstance(Account account, Context context) throws MessagingException { + return new ExchangeSender(context, account); } - private ExchangeSender(Context context, String _uri) { + private ExchangeSender(Context context, Account account) { } @Override