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:
parent
8ae83fa488
commit
24d96c36da
@ -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);
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user