mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 10:49:24 +02:00
cleanup
This commit is contained in:
parent
c14208cea3
commit
5efc822c2c
1 changed files with 0 additions and 20 deletions
|
@ -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() {
|
public static Book getRecentBook() {
|
||||||
List<Long> recentIds = BooksDatabase.Instance().loadRecentBookIds();
|
List<Long> recentIds = BooksDatabase.Instance().loadRecentBookIds();
|
||||||
return (recentIds.size() > 0) ? Book.getById(recentIds.get(0)) : null;
|
return (recentIds.size() > 0) ? Book.getById(recentIds.get(0)) : null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue