From bd3e7777c58d4ffef41922b1e7e0d3ccbbb78ca3 Mon Sep 17 00:00:00 2001 From: Makoto Onuki Date: Thu, 26 Aug 2010 13:36:58 -0700 Subject: [PATCH] Fix broken breakage introduced in I2a7fec0d This file was left unchanged somehow... Change-Id: I1b441731c71b63401c8b756e8e591c3018c07e35 --- .../android/email/activity/setup/AccountSettingsXL.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/com/android/email/activity/setup/AccountSettingsXL.java b/src/com/android/email/activity/setup/AccountSettingsXL.java index c7195c509..932180c8f 100644 --- a/src/com/android/email/activity/setup/AccountSettingsXL.java +++ b/src/com/android/email/activity/setup/AccountSettingsXL.java @@ -162,7 +162,7 @@ public class AccountSettingsXL extends PreferenceActivity private void updateAccounts() { if (hasHeaders()) { Utility.cancelTaskInterrupt(mLoadAccountListTask); - mLoadAccountListTask = (LoadAccountListTask) + mLoadAccountListTask = (LoadAccountListTask) new LoadAccountListTask().execute(mDeletingAccountId); } } @@ -374,13 +374,11 @@ public class AccountSettingsXL extends PreferenceActivity /** * Delete the selected account */ - public void deleteAccount(Account account) { + public void deleteAccount(Account account) { // Kick off the work to actually delete the account // Clear notifications, which may become stale here - NotificationManager notificationManager = (NotificationManager) - getSystemService(Context.NOTIFICATION_SERVICE); - notificationManager.cancel(MailService.NOTIFICATION_ID_NEW_MESSAGES); + MailService.cancelNewMessageNotification(this); // Delete the account (note, this is async. Would be nice to get a callback. Controller.getInstance(this).deleteAccount(account.mId);