mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 02:09:35 +02:00
library code uniformization
This commit is contained in:
parent
3433318dc8
commit
8ed1bcaf30
8 changed files with 131 additions and 68 deletions
|
@ -25,8 +25,8 @@ import org.geometerplus.zlibrary.core.filesystem.ZLFile;
|
|||
import org.geometerplus.fbreader.Paths;
|
||||
|
||||
public class FileRootTree extends RootTree {
|
||||
FileRootTree(String id) {
|
||||
super(id);
|
||||
FileRootTree(Library library, String id) {
|
||||
super(library, id);
|
||||
addChild(Paths.BooksDirectoryOption().getValue(), "fileTreeLibrary");
|
||||
addChild("/", "fileTreeRoot");
|
||||
addChild(Paths.cardDirectory(), "fileTreeCard");
|
||||
|
@ -46,4 +46,9 @@ public class FileRootTree extends RootTree {
|
|||
public String getTreeTitle() {
|
||||
return getName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Status getOpeningStatus() {
|
||||
return Status.READY_TO_OPEN;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue