diff options
Diffstat (limited to 'emailcommon/src/com/android/emailcommon/service/EmailServiceProxy.java')
-rw-r--r-- | emailcommon/src/com/android/emailcommon/service/EmailServiceProxy.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/emailcommon/src/com/android/emailcommon/service/EmailServiceProxy.java b/emailcommon/src/com/android/emailcommon/service/EmailServiceProxy.java index 36a0d336e..4fc08ee11 100644 --- a/emailcommon/src/com/android/emailcommon/service/EmailServiceProxy.java +++ b/emailcommon/src/com/android/emailcommon/service/EmailServiceProxy.java @@ -18,6 +18,7 @@ package com.android.emailcommon.service; import android.content.Context; import android.content.Intent; +import android.os.AsyncTask; import android.os.Bundle; import android.os.IBinder; import android.os.RemoteException; @@ -30,6 +31,7 @@ import com.android.emailcommon.provider.Policy; import com.android.mail.utils.LogUtils; import java.io.IOException; +import java.util.concurrent.Executor; /** * The EmailServiceProxy class provides a simple interface for the UI to call into the various @@ -259,6 +261,11 @@ public class EmailServiceProxy extends ServiceProxy implements IEmailService { public void deleteExternalAccountPIMData(final String emailAddress) throws RemoteException { setTask(new ProxyTask() { @Override + public Executor runInExecutor() { + return AsyncTask.THREAD_POOL_EXECUTOR; + } + + @Override public void run() throws RemoteException { mService.deleteExternalAccountPIMData(emailAddress); } |