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:
parent
ff9251b6b8
commit
f3275a8473
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user