make batch buttons behave correctly if the last selected item is deleted

while in a messageview
This commit is contained in:
Jesse Vincent 2010-10-08 06:18:45 +00:00
parent b0de9913e0
commit ccc9a99d94
1 changed files with 5 additions and 0 deletions

View File

@ -2266,6 +2266,11 @@ public class MessageList
MessageInfoHolder holder = iter.next();
if (holder.dirty)
{
if (holder.selected)
{
mSelectedCount--;
toggleBatchButtons();
}
iter.remove();
}
}