1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 10:49:24 +02:00

database parameter in FileInfoSet constructors

This commit is contained in:
Nikolay Pultsin 2013-01-14 07:05:09 +04:00
parent d9b061117a
commit e588c37b3b
5 changed files with 22 additions and 18 deletions

View file

@ -334,7 +334,7 @@ public final class Library {
private void build() {
// Step 0: get database books marked as "existing"
final FileInfoSet fileInfos = new FileInfoSet();
final FileInfoSet fileInfos = new FileInfoSet(myDatabase);
final Map<Long,Book> savedBooksByFileId = myDatabase.loadBooks(fileInfos, true);
final Map<Long,Book> savedBooksByBookId = new HashMap<Long,Book>();
for (Book b : savedBooksByFileId.values()) {