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

intorduced vibility field in Bookmark

This commit is contained in:
Nikolay Pultsin 2011-01-30 01:51:10 +00:00
parent f7ef6cb250
commit 41eb07e7bf
9 changed files with 67 additions and 31 deletions

View file

@ -378,6 +378,11 @@ public final class Library {
return (recentIds.size() > 0) ? Book.getById(recentIds.get(0)) : null;
}
public static Book getPreviousBook() {
List<Long> recentIds = BooksDatabase.Instance().loadRecentBookIds();
return (recentIds.size() > 1) ? Book.getById(recentIds.get(1)) : null;
}
public LibraryTree favorites() {
waitForState(STATE_FULLY_INITIALIZED);
return myFavorites;