Merge change 2465 into donut
* changes: Fix crash in GestureOverlayView
This commit is contained in:
@@ -755,6 +755,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
|
|||||||
if (ev.getAction() != MotionEvent.ACTION_DOWN || mFastScroller == null ||
|
if (ev.getAction() != MotionEvent.ACTION_DOWN || mFastScroller == null ||
|
||||||
!mFastScroller.isPointInside(ev.getX(), ev.getY())) {
|
!mFastScroller.isPointInside(ev.getX(), ev.getY())) {
|
||||||
|
|
||||||
|
if (mGesturesPopup.isShowing()) {
|
||||||
mGesturesOverlay.dispatchTouchEvent(ev);
|
mGesturesOverlay.dispatchTouchEvent(ev);
|
||||||
|
|
||||||
final boolean isGesturing = mGesturesOverlay.isGesturing();
|
final boolean isGesturing = mGesturesOverlay.isGesturing();
|
||||||
@@ -771,6 +772,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return super.dispatchTouchEvent(ev);
|
return super.dispatchTouchEvent(ev);
|
||||||
}
|
}
|
||||||
@@ -1927,6 +1929,8 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
|
|||||||
final int longPressPosition, final long longPressId) {
|
final int longPressPosition, final long longPressId) {
|
||||||
boolean handled = false;
|
boolean handled = false;
|
||||||
|
|
||||||
|
dismissGesturesPopup();
|
||||||
|
|
||||||
if (mOnItemLongClickListener != null) {
|
if (mOnItemLongClickListener != null) {
|
||||||
handled = mOnItemLongClickListener.onItemLongClick(AbsListView.this, child,
|
handled = mOnItemLongClickListener.onItemLongClick(AbsListView.this, child,
|
||||||
longPressPosition, longPressId);
|
longPressPosition, longPressId);
|
||||||
|
|||||||
Reference in New Issue
Block a user