1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 10:49:24 +02:00
This commit is contained in:
Nikolay Pultsin 2011-07-14 10:05:39 +01:00
parent c14208cea3
commit 5efc822c2c

View file

@ -389,26 +389,6 @@ public final class Library {
}
}
public LibraryTree byAuthor() {
waitForState(STATE_FULLY_INITIALIZED);
return getRootTree(ROOT_BY_AUTHOR);
}
public LibraryTree byTitle() {
waitForState(STATE_FULLY_INITIALIZED);
return getRootTree(ROOT_BY_TITLE);
}
public LibraryTree byTag() {
waitForState(STATE_FULLY_INITIALIZED);
return getRootTree(ROOT_BY_TAG);
}
public LibraryTree recentBooks() {
waitForState(STATE_FULLY_INITIALIZED);
return getRootTree(ROOT_RECENT);
}
public static Book getRecentBook() {
List<Long> recentIds = BooksDatabase.Instance().loadRecentBookIds();
return (recentIds.size() > 0) ? Book.getById(recentIds.get(0)) : null;