1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-26 01:28:50 -05:00

make sure we don't accidentally open the context menu on a message when we're in multiselect mode.

This commit is contained in:
Jesse Vincent 2009-12-29 17:05:17 +00:00
parent f90e1f67a3
commit 2ef3b15c87

View File

@ -1496,6 +1496,12 @@ public class MessageList
AdapterContextMenuInfo info = (AdapterContextMenuInfo) menuInfo;
MessageInfoHolder message = (MessageInfoHolder) mAdapter.getItem(info.position);
// in multi-select mode, the context menu pops up unintentionally
// causes misclicks
if (mSelectedWidget == WIDGET_MULTISELECT) {
return;
}
if (message == null)
{
return;