Fix removing the BookmarksEvent.Deleted instead of the actual bookmark
This commit is contained in:
parent
83790bec70
commit
2619210f8c
@ -224,7 +224,7 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener,
|
|||||||
public void bookmarkDeleted(final BookmarkEvents.Deleted event) {
|
public void bookmarkDeleted(final BookmarkEvents.Deleted event) {
|
||||||
final HistoryItem item = event.item;
|
final HistoryItem item = event.item;
|
||||||
final int size = mBookmarks.size();
|
final int size = mBookmarks.size();
|
||||||
mBookmarks.remove(event);
|
mBookmarks.remove(event.item);
|
||||||
assert mBookmarks.size() < size;
|
assert mBookmarks.size() < size;
|
||||||
mBookmarkAdapter.notifyDataSetChanged();
|
mBookmarkAdapter.notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user