Commit 4cf5f2db authored by Alexander Ivanov's avatar Alexander Ivanov

Recycle motion event used in contact list fragment.

parent 926f4ca9
......@@ -370,8 +370,10 @@ public class ContactListFragment extends Fragment implements
* Stop fling scrolling.
*/
private void stopMovement() {
listView.onTouchEvent(MotionEvent.obtain(SystemClock.uptimeMillis(),
SystemClock.uptimeMillis(), MotionEvent.ACTION_CANCEL, 0, 0, 0));
MotionEvent event = MotionEvent.obtain(SystemClock.uptimeMillis(),
SystemClock.uptimeMillis(), MotionEvent.ACTION_CANCEL, 0, 0, 0);
listView.onTouchEvent(event);
event.recycle();
}
public interface OnContactClickListener {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment