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:
parent
b8d50dc537
commit
42a38f3ab9
6 changed files with 90 additions and 88 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue