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

synchronization with library-service branch

This commit is contained in:
Nikolay Pultsin 2013-02-08 19:17:41 +00:00
parent 48f628f3ee
commit f121805be9

View file

@ -553,17 +553,8 @@ public final class Library {
return;
}
myBooks.remove(book.File);
if (getFirstLevelTree(LibraryTree.ROOT_RECENT).removeBook(book, false)) {
final List<Long> ids = myDatabase.loadRecentBookIds();
ids.remove(book.getId());
myDatabase.saveRecentBookIds(ids);
}
getFirstLevelTree(LibraryTree.ROOT_FAVORITES).removeBook(book, false);
Collection.removeBook(book, (removeMode & REMOVE_FROM_DISK) != 0);
myRootTree.removeBook(book, true);
if ((removeMode & REMOVE_FROM_DISK) != 0) {
book.File.getPhysicalFile().delete();
}
}
public List<Bookmark> allBookmarks() {