1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 10:49:24 +02:00

BookmarksUpdated event

This commit is contained in:
Nikolay Pultsin 2013-04-30 21:41:25 +02:00
parent dabdb3ff31
commit fd144412c0
2 changed files with 4 additions and 1 deletions

View file

@ -619,6 +619,7 @@ public class BookCollection extends AbstractBookCollection {
final Book book = getBookById(bookmark.getBookId());
if (book != null) {
book.HasBookmark = true;
fireBookEvent(BookEvent.BookmarksUpdated, book);
}
}
}
@ -631,6 +632,7 @@ public class BookCollection extends AbstractBookCollection {
final Book book = getBookById(bookmark.getBookId());
if (book != null) {
book.HasBookmark = myDatabase.hasVisibleBookmark(bookmark.getBookId());
fireBookEvent(BookEvent.BookmarksUpdated, book);
}
}
}

View file

@ -22,5 +22,6 @@ package org.geometerplus.fbreader.book;
public enum BookEvent {
Added,
Updated,
Removed
Removed,
BookmarksUpdated
}