mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-07 10:40:11 -05:00
If we're in touch mode and have selected items, any item click is now a select
This commit is contained in:
parent
7ab9b8ee3c
commit
6343f3af5a
@ -307,18 +307,20 @@ public class MessageList
|
||||
mController.loadMoreMessages(mAccount, mFolderName, mAdapter.mListener);
|
||||
return;
|
||||
}
|
||||
else if (mSelectedWidget == WIDGET_MULTISELECT)
|
||||
else if ( mSelectedWidget == WIDGET_MULTISELECT || (mTouchView != false && mSelectedCount > 0) )
|
||||
{
|
||||
// In multiselect mode make sure that clicking on the item results in
|
||||
// toggling the 'selected' checkbox
|
||||
CheckBox selected = (CheckBox) v.findViewById(R.id.selected_checkbox);
|
||||
selected.setChecked(!selected.isChecked());
|
||||
toggleBatchButtons();
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageInfoHolder message = (MessageInfoHolder) mAdapter.getItem(position);
|
||||
onOpenMessage(message);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user