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

Fixes Issue 1473

This commit is contained in:
Daniel Applebaum 2010-04-25 14:47:10 +00:00
parent 167e856b15
commit 6686c3a910

View File

@ -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);