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

Book.save() is not public now

This commit is contained in:
Nikolay Pultsin 2013-01-13 08:31:54 +04:00
parent 8a78a11bd8
commit bb451e9467
10 changed files with 38 additions and 25 deletions

View file

@ -151,6 +151,10 @@ public class LibraryService extends Service {
return SerializerUtil.serialize(myCollection.getBookById(id));
}
public boolean saveBook(String book, boolean force) {
return myCollection.saveBook(SerializerUtil.deserializeBook(book), force);
}
public void removeBook(String book, boolean deleteFromDisk) {
myCollection.removeBook(SerializerUtil.deserializeBook(book), deleteFromDisk);
}