Fix removing the BookmarksEvent.Deleted instead of the actual bookmark

This commit is contained in:
Stefano Pacifici 2015-09-07 10:02:23 +02:00
parent 83790bec70
commit 2619210f8c

View File

@ -224,7 +224,7 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener,
public void bookmarkDeleted(final BookmarkEvents.Deleted event) {
final HistoryItem item = event.item;
final int size = mBookmarks.size();
mBookmarks.remove(event);
mBookmarks.remove(event.item);
assert mBookmarks.size() < size;
mBookmarkAdapter.notifyDataSetChanged();
}