Skip to content

Instantly share code, notes, and snippets.

View jesdga95's full-sized avatar

Jesus Gulfo jesdga95

View GitHub Profile
@jesdga95
jesdga95 / SwipeDismissListViewTouchListener.java
Last active December 20, 2015 02:39
This bug caused notifyDataSetChanged() not to call getView() when called from onItemClick(). The fix was to check if user is swiping before animating / dismissing. This also fixed the high sensitivity on tap (some items would get dismissed when tapping)
/*
* Copyright 2012 Roman Nurik
* This code has been modified. Portions copyright (C) 2013, Jesús D. Gulfo.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*