code: public boolean saveFavorite(Article article, boolean favorite) {
  		long time = System.currentTimeMillis();
  		log("Adding article " + article.getId() + " to favorites...");
  		try {
  			if (favorite)
  				favoriteDatabase.add(article);
  			else
  				favoriteDatabase.delete(article);
  		}
  		catch (Exception e) {
  			log("Error " + (favorite ? "saving article to" : "deleting article from") + " favorites database.", Log.ERROR);
  		}
  
  		log("Saving article " + article.getId() + " to favorites took " + (System.currentTimeMillis() - time) + "ms");
  		return true;
  	}
docs: Saves/Deletes an {@link Article} object to the favorites database.
  @param article Article object to save.
  @param favorite Whether to save or delete. {@code true} to save; {@code false} to delete.
  @return {@code true} if successful, {@code false} if otherwise.