Esempio n. 1
0
 private synchronized void updateInvisibleBookmarksList(Bookmark b) {
   if (Model != null && Model.Book != null && b != null) {
     for (Bookmark bm : Library.Instance().invisibleBookmarks(Model.Book)) {
       if (b.equals(bm)) {
         bm.delete();
       }
     }
     b.save();
     final List<Bookmark> bookmarks = Library.Instance().invisibleBookmarks(Model.Book);
     for (int i = 3; i < bookmarks.size(); ++i) {
       bookmarks.get(i).delete();
     }
   }
 }
Esempio n. 2
0
 public final int getCount() {
   return myCurrentBook ? myBookmarks.size() + 1 : myBookmarks.size();
 }