mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 02:09:35 +02:00
updating book info
This commit is contained in:
parent
7b498f8949
commit
78669b0694
17 changed files with 120 additions and 93 deletions
|
@ -145,17 +145,6 @@ final class SQLiteBooksDatabase extends BooksDatabase {
|
|||
return book;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void reloadBook(Book book) {
|
||||
final Cursor cursor = myDatabase.rawQuery("SELECT title,encoding,language FROM Books WHERE book_id = " + book.getId(), null);
|
||||
if (cursor.moveToNext()) {
|
||||
book.setTitle(cursor.getString(0));
|
||||
book.setEncoding(cursor.getString(1));
|
||||
book.setLanguage(cursor.getString(2));
|
||||
}
|
||||
cursor.close();
|
||||
}
|
||||
|
||||
protected Book loadBookByFile(long fileId, ZLFile file) {
|
||||
if (fileId == -1) {
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue