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

LibraryActivity uses BookCollectionShadow

This commit is contained in:
Nikolay Pultsin 2013-01-15 05:51:01 +04:00
parent b8d50dc537
commit 42a38f3ab9
6 changed files with 90 additions and 88 deletions

View file

@ -82,11 +82,7 @@ public class LibraryService extends Service {
private final List<FileObserver> myFileObservers = new LinkedList<FileObserver>();
LibraryImplementation() {
BooksDatabase database = SQLiteBooksDatabase.Instance();
if (database == null) {
database = new SQLiteBooksDatabase(LibraryService.this, "LIBRARY SERVICE");
}
myCollection = new BookCollection(database);
myCollection = new BookCollection(SQLiteBooksDatabase.Instance(LibraryService.this));
for (String path : myCollection.bookDirectories()) {
final Observer observer = new Observer(path);
observer.startWatching();