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

file name in book info dialog

git-svn-id: https://only.mawhrin.net/repos/FBReaderJ/trunk@1020 6a642e6f-84f6-412e-ac94-c4a38d5a04b0
This commit is contained in:
Nikolay Pultsin 2009-09-28 10:26:28 +00:00
parent e50c165357
commit 52f831e16b
4 changed files with 19 additions and 4 deletions

View file

@ -36,9 +36,6 @@ public final class Library {
return ourInstance;
}
// TODO: this option is platform-dependent
private final ZLFile BookDirectory = new ZLPhysicalFile(new File(Constants.BOOKS_DIRECTORY));
private final LinkedList<Book> myBooks = new LinkedList<Book>();
private final LibraryTree myLibraryByAuthor = new RootTree();
private final LibraryTree myLibraryByTag = new RootTree();
@ -105,7 +102,8 @@ public final class Library {
final HashSet<ZLFile> dirSet = new HashSet<ZLFile>();
final LinkedList<ZLPhysicalFile> fileList = new LinkedList<ZLPhysicalFile>();
dirQueue.offer(BookDirectory);
dirQueue.offer(new ZLPhysicalFile(new File(Constants.BOOKS_DIRECTORY)));
while (!dirQueue.isEmpty()) {
for (ZLFile file : dirQueue.poll().children()) {
if (file.isDirectory()) {