From 6343f3af5a0a5871b75f0203672f3e91ce8111af Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Wed, 13 Jan 2010 03:36:49 +0000 Subject: [PATCH] If we're in touch mode and have selected items, any item click is now a select --- src/com/fsck/k9/activity/MessageList.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/fsck/k9/activity/MessageList.java b/src/com/fsck/k9/activity/MessageList.java index e2246a84f..381f3aef7 100644 --- a/src/com/fsck/k9/activity/MessageList.java +++ b/src/com/fsck/k9/activity/MessageList.java @@ -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; } }