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:
parent
48f628f3ee
commit
f121805be9
1 changed files with 1 additions and 10 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue