Merge "use non-deprecated async task method"

This commit is contained in:
Todd Kennedy 2011-04-01 12:00:05 -07:00 committed by Android (Google) Code Review
commit c33054f9e4

View File

@ -20,6 +20,7 @@ import com.android.email.Controller;
import com.android.email.Email;
import com.android.email.R;
import com.android.emailcommon.provider.EmailContent.Mailbox;
import com.android.emailcommon.utility.EmailAsyncTask;
import com.android.emailcommon.utility.Utility;
import android.app.Activity;
@ -107,7 +108,7 @@ public final class ActivityHelper {
public static void moveMessages(final Activity activity, final long newMailboxId,
final long[] messageIds) {
Controller.getInstance(activity).moveMessage(messageIds, newMailboxId);
Utility.runAsync(new Runnable() {
EmailAsyncTask.runAsyncSerial(new Runnable() {
@Override
public void run() {
String mailboxName = Mailbox.getDisplayName(activity, newMailboxId);