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

Fixes Issue 1477

Keep mSelectedCount in sync with the number of selected messages.
This commit is contained in:
Daniel Applebaum 2010-04-27 03:26:54 +00:00
parent 488301d03e
commit 3f771474c1

View File

@ -1416,7 +1416,7 @@ public class MessageList
{ {
MessageInfoHolder msgInfoHolder = (MessageInfoHolder) mAdapter.getItem(position); MessageInfoHolder msgInfoHolder = (MessageInfoHolder) mAdapter.getItem(position);
if (msgInfoHolder != null) if (msgInfoHolder != null && msgInfoHolder.selected != selected)
{ {
msgInfoHolder.selected = selected; msgInfoHolder.selected = selected;
mSelectedCount += (selected ? 1 : -1); mSelectedCount += (selected ? 1 : -1);