mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-02 00:25:10 -04:00
Fixes Issue 1473
This commit is contained in:
parent
167e856b15
commit
6686c3a910
@ -4401,15 +4401,15 @@ public class MessagingController implements Runnable
|
||||
}
|
||||
|
||||
int unreadMessageCount = 0;
|
||||
// try
|
||||
// {
|
||||
// AccountStats stats = account.getStats(context);
|
||||
// unreadMessageCount = stats.unreadMessageCount;
|
||||
// }
|
||||
// catch (MessagingException e)
|
||||
// {
|
||||
// Log.e(K9.LOG_TAG, "Unable to getUnreadMessageCount for account: " + account, e);
|
||||
// }
|
||||
try
|
||||
{
|
||||
AccountStats stats = account.getStats(context);
|
||||
unreadMessageCount = stats.unreadMessageCount;
|
||||
}
|
||||
catch (MessagingException e)
|
||||
{
|
||||
Log.e(K9.LOG_TAG, "Unable to getUnreadMessageCount for account: " + account, e);
|
||||
}
|
||||
|
||||
NotificationManager notifMgr =
|
||||
(NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE);
|
||||
|
Loading…
Reference in New Issue
Block a user