1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 00:58:50 -05:00

Fixes Issue 1284

Remove notifications for removed accounts
This commit is contained in:
Daniel Applebaum 2010-03-13 05:00:01 +00:00
parent 8ae83fa488
commit 24d96c36da
2 changed files with 2 additions and 1 deletions

View File

@ -4267,7 +4267,7 @@ public class MessagingController implements Runnable
}
/** Cancel a notification of new email messages */
private void notifyAccountCancel(Context context, Account account)
public void notifyAccountCancel(Context context, Account account)
{
NotificationManager notifMgr =
(NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE);

View File

@ -477,6 +477,7 @@ public class Accounts extends K9ListActivity implements OnItemClickListener, OnC
{
// Ignore
}
MessagingController.getInstance(getApplication()).notifyAccountCancel(Accounts.this, mSelectedContextAccount);
Preferences.getPreferences(Accounts.this).deleteAccount(mSelectedContextAccount);
K9.setServicesEnabled(Accounts.this);
refresh();