mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-30 13:12:25 -05:00
Issue 3139: notifications of new messages removed when unified inbox is selected
This commit is contained in:
parent
4c74001a28
commit
457e65010e
@ -800,9 +800,20 @@ public class MessageList
|
|||||||
sortDateAscending = mController.isSortAscending(SORT_TYPE.SORT_DATE);
|
sortDateAscending = mController.isSortAscending(SORT_TYPE.SORT_DATE);
|
||||||
|
|
||||||
mController.addListener(mAdapter.mListener);
|
mController.addListener(mAdapter.mListener);
|
||||||
|
|
||||||
|
Account[] accountsWithNotification = null;
|
||||||
|
|
||||||
if (mAccount != null) {
|
if (mAccount != null) {
|
||||||
mController.notifyAccountCancel(this, mAccount);
|
accountsWithNotification = new Account[1];
|
||||||
MessagingController.getInstance(getApplication()).notifyAccountCancel(this, mAccount);
|
accountsWithNotification[0] = mAccount;
|
||||||
|
} else {
|
||||||
|
Preferences preferences = Preferences.getPreferences(this);
|
||||||
|
accountsWithNotification = preferences.getAccounts();
|
||||||
|
}
|
||||||
|
|
||||||
|
for (Account accountWithNotification : accountsWithNotification) {
|
||||||
|
mController.notifyAccountCancel(this, accountWithNotification);
|
||||||
|
MessagingController.getInstance(getApplication()).notifyAccountCancel(this, accountWithNotification);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mAdapter.messages.isEmpty()) {
|
if (mAdapter.messages.isEmpty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user