/* * called when user taps an image in the webView - shows the image full-screen */ private void showPhotoViewer(final String imageUrl) { if (TextUtils.isEmpty(imageUrl)) return; // images in private posts must use https for auth token to be sent with request if (mPost.isPrivate) { ReaderActivityLauncher.showReaderPhotoViewer(this, UrlUtils.makeHttps(imageUrl)); } else { ReaderActivityLauncher.showReaderPhotoViewer(this, imageUrl); } }
/* * triggered when user chooses to reblog the post */ private void doPostReblog(View btnReblog, ReaderPost post) { if (post.isRebloggedByCurrentUser) { ToastUtils.showToast(this, R.string.reader_toast_err_already_reblogged); return; } btnReblog.setSelected(true); ReaderAniUtils.zoomAction(btnReblog); ReaderActivityLauncher.showReaderReblogForResult(this, post); }