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);
if (msgInfoHolder != null)
if (msgInfoHolder != null && msgInfoHolder.selected != selected)
{
msgInfoHolder.selected = selected;
mSelectedCount += (selected ? 1 : -1);