@Override
  public boolean onUrlClick(String url) {
    // if this is a "wordpress://blogpreview?" link, show blog preview for the blog - this is
    // used for Discover posts that highlight a blog
    if (ReaderUtils.isBlogPreviewUrl(url)) {
      long blogId = ReaderUtils.getBlogIdFromBlogPreviewUrl(url);
      if (blogId != 0) {
        ReaderActivityLauncher.showReaderBlogPreview(getActivity(), blogId);
      }
      return true;
    }

    // open YouTube videos in external app so they launch the YouTube player, open all other
    // urls using an AuthenticatedWebViewActivity
    final OpenUrlType openUrlType;
    if (ReaderVideoUtils.isYouTubeVideoLink(url)) {
      openUrlType = OpenUrlType.EXTERNAL;
    } else {
      openUrlType = OpenUrlType.INTERNAL;
    }
    ReaderActivityLauncher.openUrl(getActivity(), url, openUrlType);
    return true;
  }
 @Override
 public boolean onOptionsItemSelected(MenuItem item) {
   int i = item.getItemId();
   if (i == R.id.menu_browse) {
     if (hasPost()) {
       ReaderActivityLauncher.openUrl(getActivity(), mPost.getUrl(), OpenUrlType.EXTERNAL);
     }
     return true;
   } else if (i == R.id.menu_share) {
     AnalyticsTracker.track(AnalyticsTracker.Stat.SHARED_ITEM);
     sharePage();
     return true;
   } else {
     return super.onOptionsItemSelected(item);
   }
 }
  private boolean showPhotoViewer(String imageUrl, View sourceView, int startX, int startY) {
    if (!isAdded() || TextUtils.isEmpty(imageUrl)) {
      return false;
    }

    // make sure this is a valid web image (could be file: or data:)
    if (!imageUrl.startsWith("http")) {
      return false;
    }

    String postContent = (mRenderer != null ? mRenderer.getRenderedHtml() : null);
    boolean isPrivatePost = (mPost != null && mPost.isPrivate);

    ReaderActivityLauncher.showReaderPhotoViewer(
        getActivity(), imageUrl, postContent, sourceView, isPrivatePost, startX, startY);

    return true;
  }
 @Override
 public void onRequestReblog(ReaderPost post) {
   if (hasActivity()) ReaderActivityLauncher.showReaderReblogForResult(getActivity(), post);
 }