/**
  * Start refreshing the saved pages.
  *
  * <p>This function returns after starting the refresh and does not block
  */
 public void refresh() {
   // Reset flags
   isRefreshCancelled = false;
   savedPagesCompleted = 0;
   progressDialog.show();
   for (int i = 0; i < savedPages.size() && !isRefreshCancelled; i++) {
     final SavedPage savedPage = savedPages.get(i);
     L.d("refreshing start: " + savedPage.getTitle().getDisplayText());
     refreshOneSavedPage(savedPage.getTitle());
   }
 }
 @OnClick({
   R.id.view_article_menu_bar_bookmark,
   R.id.view_article_menu_bar_share,
   R.id.view_article_menu_bar_navigate
 })
 public void onClick(View view) {
   switch (view.getId()) {
     case R.id.view_article_menu_bar_bookmark:
       view.setActivated(!view.isActivated());
       callback.onBookmarkClick(view.isActivated());
       break;
     case R.id.view_article_menu_bar_share:
       callback.onShareClick();
       break;
     case R.id.view_article_menu_bar_navigate:
       callback.onNavigateClick();
       break;
     default:
       L.w("Unknown id=" + StringUtil.intToHexStr(view.getId()));
       break;
   }
 }
 public void logError(String message) {
   if (error != null) {
     message += ": " + error.toString();
   }
   L.e(message);
 }