From 956c6f27fae9dfe363e6ec53b2cd6a3f69cb3ff1 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 21 Oct 2013 23:36:32 +0400 Subject: [PATCH] add article image context menu entry to copy link to clipboard --- res/menu/article_content_img_context_menu.xml | 14 +++++++++----- src/org/fox/ttrss/OnlineActivity.java | 5 +++++ src/org/fox/ttrss/offline/OfflineActivity.java | 5 +++++ 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/res/menu/article_content_img_context_menu.xml b/res/menu/article_content_img_context_menu.xml index 0f14dd92..128a21df 100644 --- a/res/menu/article_content_img_context_menu.xml +++ b/res/menu/article_content_img_context_menu.xml @@ -4,20 +4,24 @@ android:id="@+id/article_img_open" android:showAsAction="" android:title="@string/article_img_open"/> - + - - + android:title="Save image to file"/> + --> - + \ No newline at end of file diff --git a/src/org/fox/ttrss/OnlineActivity.java b/src/org/fox/ttrss/OnlineActivity.java index a1652cd1..6cd08cd4 100644 --- a/src/org/fox/ttrss/OnlineActivity.java +++ b/src/org/fox/ttrss/OnlineActivity.java @@ -559,6 +559,11 @@ public class OnlineActivity extends CommonActivity { } } return true; + case R.id.article_img_copy: + if (getLastContentImageHitTestUrl() != null) { + copyToClipboard(getLastContentImageHitTestUrl()); + } + return true; case R.id.article_img_share: if (getLastContentImageHitTestUrl() != null) { Intent intent = new Intent(Intent.ACTION_SEND); diff --git a/src/org/fox/ttrss/offline/OfflineActivity.java b/src/org/fox/ttrss/offline/OfflineActivity.java index 712bed78..4d5513f0 100644 --- a/src/org/fox/ttrss/offline/OfflineActivity.java +++ b/src/org/fox/ttrss/offline/OfflineActivity.java @@ -95,6 +95,11 @@ public class OfflineActivity extends CommonActivity { } } return true; + case R.id.article_img_copy: + if (getLastContentImageHitTestUrl() != null) { + copyToClipboard(getLastContentImageHitTestUrl()); + } + return true; case R.id.article_img_share: if (getLastContentImageHitTestUrl() != null) { Intent intent = new Intent(Intent.ACTION_SEND);