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

IBookCollection.canRemoveBook() method

This commit is contained in:
Nikolay Pultsin 2015-01-15 15:41:15 +00:00
parent f5504de03a
commit e85bfcde29
7 changed files with 42 additions and 20 deletions

View file

@ -203,7 +203,7 @@ public class LibraryActivity extends TreeActivity<LibraryTree> implements MenuIt
} else {
menu.add(0, ContextItemId.MarkAsRead, 0, resource.getResource("markAsRead").getValue());
}
if (BookUtil.canRemoveBookFile(book)) {
if (myCollection.canRemoveBook(book, true)) {
menu.add(0, ContextItemId.DeleteBook, 0, resource.getResource("deleteBook").getValue());
}
if (labels.contains(Book.SYNC_DELETED_LABEL)) {