Exemplo n.º 1
0
 public void deleteBookmark(Bookmark bookmark) {
   if (bookmark != null && bookmark.getId() != -1) {
     myDatabase.deleteBookmark(bookmark);
   }
 }
Exemplo n.º 2
0
 public void saveBookmark(Bookmark bookmark) {
   if (bookmark != null) {
     bookmark.setId(myDatabase.saveBookmark(bookmark));
   }
 }