Avoid allocating two temp variables on sync
This commit is contained in:
parent
f5a399f6c6
commit
06a3d5985b
1 changed files with 1 additions and 3 deletions
|
@ -4389,9 +4389,7 @@ public class MessagingController implements Runnable
|
|||
account.setRingNotified(false);
|
||||
try
|
||||
{
|
||||
AccountStats stats = account.getStats(context);
|
||||
int unreadMessageCount = stats.unreadMessageCount;
|
||||
if (unreadMessageCount == 0)
|
||||
if (account.getStats(context).unreadMessageCount == 0)
|
||||
{
|
||||
notifyAccountCancel(context, account);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue