title: android swipe to dismiss listview won't remove item
body: <p><a href="https://github.com/romannurik/Android-SwipeToDismiss" rel="nofollow">I'm using this library</a> to make a listview with swipe to dismiss feature.</p>
  
  <p>I am using an ArrayAdapter and using this code to create a swipe to dismiss listener </p>
  
  <pre><code> SwipeDismissListViewTouchListener touchListener =
                  new SwipeDismissListViewTouchListener(
                          listView,
                          new SwipeDismissListViewTouchListener.DismissCallbacks() {
                              @Override
                              public boolean canDismiss(int position) {
                                  return true;
                              }
  
                              @Override
                              public void onDismiss(ListView listView, int[] reverseSortedPositions) {
                                  for (int position : reverseSortedPositions) {
                                      mAdapter.remove(mAdapter.getItem(position));
                                  }
                                  mAdapter.notifyDataSetChanged();
                              }
                          });
          listView.setOnTouchListener(touchListener);
          // Setting this scroll listener is required to ensure that during ListView scrolling,
          // we don't look for swipes.
          listView.setOnScrollListener(touchListener.makeScrollListener());
  </code></pre>
  
  <p>But every time trying to swipe it seems like it worked but then the item comes back.</p>
  
  <p>The log cat doesn't throw me any exception. </p>
  
  <p>Did anybody had this error before? please help.</p>