diff --git a/res/layout/message_list.xml b/res/layout/message_list.xml
index 57f90f6e6..8f969a9fa 100644
--- a/res/layout/message_list.xml
+++ b/res/layout/message_list.xml
@@ -37,6 +37,13 @@
android:layout_weight="1"
android:text="@string/message_list_flag_action"
/>
+
messageList = new ArrayList();
List removeHolderList = new ArrayList();
+ if (v == mBatchDoneButton)
+ {
+ setAllSelected(false);
+ return;
+ }
+
if (v == mBatchFlagButton)
{
newState = computeBatchDirection(true);
@@ -2547,6 +2564,7 @@ str.setSpan(new TextAppearanceSpan(null ,Typeface.BOLD ,-1, holder.subject.getTe
}
for (MessageInfoHolder holder : mAdapter.messages)
{
+
if (holder.selected)
{
if (v == mBatchDeleteButton)
@@ -2597,7 +2615,7 @@ str.setSpan(new TextAppearanceSpan(null ,Typeface.BOLD ,-1, holder.subject.getTe
mSelectedCount += (isSelected ? 1 : 0);
}
mAdapter.notifyDataSetChanged();
- showBatchButtons();
+ toggleBatchButtons();
}
private void flagSelected(Flag flag, boolean newState)