mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
"Optimized" computeBatchDirection() to exit the loop once newState is set to true because it can never be changed to false again.
This commit is contained in:
parent
6fc14b9e07
commit
f40a01b0d2
@ -2793,6 +2793,7 @@ public class MessageList
|
|||||||
if (!holder.flagged)
|
if (!holder.flagged)
|
||||||
{
|
{
|
||||||
newState = true;
|
newState = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -2800,6 +2801,7 @@ public class MessageList
|
|||||||
if (!holder.read)
|
if (!holder.read)
|
||||||
{
|
{
|
||||||
newState = true;
|
newState = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user