add article image context menu entry to copy link to clipboard

This commit is contained in:
Andrew Dolgov 2013-10-21 23:36:32 +04:00
parent bff474c925
commit 956c6f27fa
3 changed files with 19 additions and 5 deletions

View File

@ -4,20 +4,24 @@
android:id="@+id/article_img_open"
android:showAsAction=""
android:title="@string/article_img_open"/>
<item
android:id="@+id/article_img_copy"
android:showAsAction=""
android:title="@string/article_link_copy"/>
<item
android:id="@+id/article_img_share"
android:showAsAction=""
android:title="@string/article_img_share"/>
<item
android:id="@+id/article_img_view_caption"
android:showAsAction=""
android:title="@string/article_img_view_caption"/>
<!-- <item
<!--
<item
android:id="@+id/article_img_save"
android:showAsAction=""
android:title="Save image to file"/> -->
android:title="Save image to file"/>
-->
</menu>
</menu>

View File

@ -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);

View File

@ -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);