mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
Fix a bug pull-to-refresh exposed in our swipe to select code.
This commit is contained in:
parent
e0a687dba4
commit
b76be539b8
@ -26,8 +26,10 @@ import android.text.style.ForegroundColorSpan;
|
|||||||
import android.text.style.StyleSpan;
|
import android.text.style.StyleSpan;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.util.TypedValue;
|
import android.util.TypedValue;
|
||||||
|
import android.view.GestureDetector;
|
||||||
import android.view.KeyEvent;
|
import android.view.KeyEvent;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
|
import android.view.MotionEvent;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.View.OnClickListener;
|
import android.view.View.OnClickListener;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
@ -1575,7 +1577,8 @@ public class MessageList extends K9ListActivity implements OnItemClickListener,
|
|||||||
mListView.getLocationOnScreen(listPosition);
|
mListView.getLocationOnScreen(listPosition);
|
||||||
int position = mListView.pointToPosition((int) downMotion.getRawX() - listPosition[0], (int) downMotion.getRawY() - listPosition[1]);
|
int position = mListView.pointToPosition((int) downMotion.getRawX() - listPosition[0], (int) downMotion.getRawY() - listPosition[1]);
|
||||||
if (position != AdapterView.INVALID_POSITION) {
|
if (position != AdapterView.INVALID_POSITION) {
|
||||||
handleContextRelatedClick(position);
|
final MessageInfoHolder message = (MessageInfoHolder) mListView.getItemAtPosition(position);
|
||||||
|
toggleMessageSelect(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user