1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-01-31 07:10:14 -05:00

When we've entered "selection mode" actually make sure we _show_ the

selected-item check mark.
This commit is contained in:
Jesse Vincent 2010-01-17 05:52:22 +00:00
parent ff9251b6b8
commit f3275a8473

View File

@ -308,18 +308,18 @@ public class MessageList
mController.loadMoreMessages(mAccount, mFolderName, mAdapter.mListener); mController.loadMoreMessages(mAccount, mFolderName, mAdapter.mListener);
return; return;
} }
else if (mSelectedCount > 0)
MessageInfoHolder message = (MessageInfoHolder) mAdapter.getItem(position);
if (mSelectedCount > 0)
{ {
// In multiselect mode make sure that clicking on the item results in // In multiselect mode make sure that clicking on the item results in
// toggling the 'selected' checkbox // toggling the 'selected' checkbox
CheckBox selected = (CheckBox) v.findViewById(R.id.selected_checkbox); setSelected(message, !message.selected);
selected.setChecked(!selected.isChecked());
toggleBatchButtons();
return; return;
} }
else else
{ {
MessageInfoHolder message = (MessageInfoHolder) mAdapter.getItem(position);
onOpenMessage(message); onOpenMessage(message);
return; return;
} }