mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 17:59:33 +02:00
synchronization with library-service branch + constants are moved from Library to LibraryTree
This commit is contained in:
parent
5f6a41fb3a
commit
a46e23e78e
17 changed files with 100 additions and 94 deletions
|
@ -23,14 +23,10 @@ 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 {
|
||||
private final IBookCollection myCollection;
|
||||
|
||||
FileFirstLevelTree(IBookCollection collection, RootTree root, String id) {
|
||||
super(root, id);
|
||||
myCollection = collection;
|
||||
FileFirstLevelTree(RootTree root) {
|
||||
super(root, ROOT_FILE_TREE);
|
||||
addChild(Paths.BooksDirectoryOption().getValue(), "fileTreeLibrary");
|
||||
addChild("/", "fileTreeRoot");
|
||||
addChild(Paths.cardDirectory(), "fileTreeCard");
|
||||
|
@ -42,7 +38,6 @@ 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