mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 10:19:33 +02:00
Book.getByFile() => IBookCollection.getBookByFile()
This commit is contained in:
parent
2ec3c907af
commit
bc3976f5f6
12 changed files with 138 additions and 92 deletions
|
@ -27,6 +27,8 @@ import android.content.Intent;
|
|||
import android.os.IBinder;
|
||||
import android.os.FileObserver;
|
||||
|
||||
import org.geometerplus.zlibrary.core.filesystem.ZLFile;
|
||||
|
||||
import org.geometerplus.fbreader.library.*;
|
||||
|
||||
import org.geometerplus.android.fbreader.library.SQLiteBooksDatabase;
|
||||
|
@ -141,6 +143,10 @@ public class LibraryService extends Service {
|
|||
return SerializerUtil.serialize(myCollection.getRecentBook(index));
|
||||
}
|
||||
|
||||
public String getBookByFile(String file) {
|
||||
return SerializerUtil.serialize(myCollection.getBookByFile(ZLFile.createFileByPath(file)));
|
||||
}
|
||||
|
||||
public String getBookById(long id) {
|
||||
return SerializerUtil.serialize(myCollection.getBookById(id));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue