mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 02:39:23 +02:00
BookmarksUpdated event
This commit is contained in:
parent
dabdb3ff31
commit
fd144412c0
2 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,5 +22,6 @@ package org.geometerplus.fbreader.book;
|
|||
public enum BookEvent {
|
||||
Added,
|
||||
Updated,
|
||||
Removed
|
||||
Removed,
|
||||
BookmarksUpdated
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue