Fix a bug pull-to-refresh exposed in our swipe to select code.

This commit is contained in:
Sander Bogaert 2012-09-20 16:57:15 -04:00
parent e0a687dba4
commit b76be539b8
1 changed files with 4 additions and 1 deletions

View File

@ -26,8 +26,10 @@ import android.text.style.ForegroundColorSpan;
import android.text.style.StyleSpan;
import android.util.Log;
import android.util.TypedValue;
import android.view.GestureDetector;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
@ -1575,7 +1577,8 @@ public class MessageList extends K9ListActivity implements OnItemClickListener,
mListView.getLocationOnScreen(listPosition);
int position = mListView.pointToPosition((int) downMotion.getRawX() - listPosition[0], (int) downMotion.getRawY() - listPosition[1]);
if (position != AdapterView.INVALID_POSITION) {
handleContextRelatedClick(position);
final MessageInfoHolder message = (MessageInfoHolder) mListView.getItemAtPosition(position);
toggleMessageSelect(message);
}
}