add article image context menu entry to copy link to clipboard
This commit is contained in:
parent
bff474c925
commit
956c6f27fa
@ -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>
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user