mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 02:09:35 +02:00
synchronization with library-service branch
This commit is contained in:
parent
d0e1411ce5
commit
a11a63b3ea
3 changed files with 14 additions and 3 deletions
|
@ -23,10 +23,14 @@ import org.geometerplus.zlibrary.core.resources.ZLResource;
|
|||
import org.geometerplus.zlibrary.core.filesystem.ZLFile;
|
||||
|
||||
import org.geometerplus.fbreader.Paths;
|
||||
import org.geometerplus.fbreader.book.IBookCollection;
|
||||
|
||||
public class FileFirstLevelTree extends FirstLevelTree {
|
||||
FileFirstLevelTree(RootTree root, String id) {
|
||||
private final IBookCollection myCollection;
|
||||
|
||||
FileFirstLevelTree(IBookCollection collection, RootTree root, String id) {
|
||||
super(root, id);
|
||||
myCollection = collection;
|
||||
addChild(Paths.BooksDirectoryOption().getValue(), "fileTreeLibrary");
|
||||
addChild("/", "fileTreeRoot");
|
||||
addChild(Paths.cardDirectory(), "fileTreeCard");
|
||||
|
@ -38,6 +42,7 @@ public class FileFirstLevelTree extends FirstLevelTree {
|
|||
final ZLResource resource = Library.resource().getResource(resourceKey);
|
||||
new FileTree(
|
||||
this,
|
||||
myCollection,
|
||||
file,
|
||||
resource.getValue(),
|
||||
resource.getResource("summary").getValue()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue