From 6c51640db225be0c1e75bcc8fce5c522c0928ee9 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 21 Oct 2018 13:39:34 -0700 Subject: [PATCH] fixed always-open-in-browser to work with image menu --- .../floens/chan/ui/controller/ImageViewerController.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Clover/app/src/main/java/org/floens/chan/ui/controller/ImageViewerController.java b/Clover/app/src/main/java/org/floens/chan/ui/controller/ImageViewerController.java index eea5f647f7..a4f3a7e15b 100644 --- a/Clover/app/src/main/java/org/floens/chan/ui/controller/ImageViewerController.java +++ b/Clover/app/src/main/java/org/floens/chan/ui/controller/ImageViewerController.java @@ -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) {