mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 02:12:15 -05:00
Avoid allocating two temp variables on sync
This commit is contained in:
parent
f5a399f6c6
commit
06a3d5985b
@ -4389,9 +4389,7 @@ public class MessagingController implements Runnable
|
|||||||
account.setRingNotified(false);
|
account.setRingNotified(false);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
AccountStats stats = account.getStats(context);
|
if (account.getStats(context).unreadMessageCount == 0)
|
||||||
int unreadMessageCount = stats.unreadMessageCount;
|
|
||||||
if (unreadMessageCount == 0)
|
|
||||||
{
|
{
|
||||||
notifyAccountCancel(context, account);
|
notifyAccountCancel(context, account);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user