increase MessageListItem touchslop

Bug: 5237832
Change-Id: Ic651cb23b25041195a226a301b9111c5e8d831ec
This commit is contained in:
Ben Komalo 2011-08-31 14:06:41 -07:00
parent b7d137bfb6
commit 2076fa7a3b

View File

@ -445,7 +445,7 @@ public class MessageListItem extends View {
} }
private static final int TOUCH_SLOP = 16; private static final int TOUCH_SLOP = 24;
private static int sScaledTouchSlop = -1; private static int sScaledTouchSlop = -1;
private void initializeSlop(Context context) { private void initializeSlop(Context context) {
@ -475,7 +475,7 @@ public class MessageListItem extends View {
int touchX = (int) event.getX(); int touchX = (int) event.getX();
int checkRight = mCoordinates.checkmarkX int checkRight = mCoordinates.checkmarkX
+ mCoordinates.checkmarkWidthIncludingMargins + sScaledTouchSlop; + mCoordinates.checkmarkWidthIncludingMargins + sScaledTouchSlop;
int starLeft = mCoordinates.starX; int starLeft = mCoordinates.starX - sScaledTouchSlop;
switch (event.getAction()) { switch (event.getAction()) {
case MotionEvent.ACTION_DOWN: case MotionEvent.ACTION_DOWN: