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:id="@+id/article_img_open"
|
||||||
android:showAsAction=""
|
android:showAsAction=""
|
||||||
android:title="@string/article_img_open"/>
|
android:title="@string/article_img_open"/>
|
||||||
|
<item
|
||||||
|
android:id="@+id/article_img_copy"
|
||||||
|
android:showAsAction=""
|
||||||
|
android:title="@string/article_link_copy"/>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/article_img_share"
|
android:id="@+id/article_img_share"
|
||||||
android:showAsAction=""
|
android:showAsAction=""
|
||||||
android:title="@string/article_img_share"/>
|
android:title="@string/article_img_share"/>
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/article_img_view_caption"
|
android:id="@+id/article_img_view_caption"
|
||||||
android:showAsAction=""
|
android:showAsAction=""
|
||||||
android:title="@string/article_img_view_caption"/>
|
android:title="@string/article_img_view_caption"/>
|
||||||
|
|
||||||
<!-- <item
|
<!--
|
||||||
|
<item
|
||||||
android:id="@+id/article_img_save"
|
android:id="@+id/article_img_save"
|
||||||
android:showAsAction=""
|
android:showAsAction=""
|
||||||
android:title="Save image to file"/> -->
|
android:title="Save image to file"/>
|
||||||
|
-->
|
||||||
|
|
||||||
</menu>
|
</menu>
|
@ -559,6 +559,11 @@ public class OnlineActivity extends CommonActivity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
case R.id.article_img_copy:
|
||||||
|
if (getLastContentImageHitTestUrl() != null) {
|
||||||
|
copyToClipboard(getLastContentImageHitTestUrl());
|
||||||
|
}
|
||||||
|
return true;
|
||||||
case R.id.article_img_share:
|
case R.id.article_img_share:
|
||||||
if (getLastContentImageHitTestUrl() != null) {
|
if (getLastContentImageHitTestUrl() != null) {
|
||||||
Intent intent = new Intent(Intent.ACTION_SEND);
|
Intent intent = new Intent(Intent.ACTION_SEND);
|
||||||
|
@ -95,6 +95,11 @@ public class OfflineActivity extends CommonActivity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
case R.id.article_img_copy:
|
||||||
|
if (getLastContentImageHitTestUrl() != null) {
|
||||||
|
copyToClipboard(getLastContentImageHitTestUrl());
|
||||||
|
}
|
||||||
|
return true;
|
||||||
case R.id.article_img_share:
|
case R.id.article_img_share:
|
||||||
if (getLastContentImageHitTestUrl() != null) {
|
if (getLastContentImageHitTestUrl() != null) {
|
||||||
Intent intent = new Intent(Intent.ACTION_SEND);
|
Intent intent = new Intent(Intent.ACTION_SEND);
|
||||||
|
Loading…
Reference in New Issue
Block a user