Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

Commit

Permalink
Merge pull request #577 from veridiam/dev
Browse files Browse the repository at this point in the history
fixed always-open-in-browser to work with image menu
  • Loading branch information
floens authored Nov 17, 2018
2 parents e1bb5f5 + 6c51640 commit 03ebf95
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,11 @@ private void saveClicked(ToolbarMenuItem item) {

private void openBrowserClicked(ToolbarMenuSubItem item) {
PostImage postImage = presenter.getCurrentPostImage();
AndroidUtils.openLinkInBrowser((Activity) context, postImage.imageUrl.toString());
if (ChanSettings.openLinkBrowser.get()) {
AndroidUtils.openLink(postImage.imageUrl.toString());
} else {
AndroidUtils.openLinkInBrowser((Activity) context, postImage.imageUrl.toString());
}
}

private void shareClicked(ToolbarMenuSubItem item) {
Expand Down

0 comments on commit 03ebf95

Please sign in to comment.