Review changes

This commit is contained in:
ByteHamster 2017-06-04 14:22:45 +02:00
parent a3d1c994a8
commit 75ece930e9
3 changed files with 5 additions and 4 deletions

View File

@ -101,7 +101,7 @@ public class FeedItemMenuHandler {
mi.setItemVisibility(R.id.share_download_url_with_position_item, false);
}
mi.setItemVisibility(R.id.share_file, selectedItem.getMedia().fileExists());
mi.setItemVisibility(R.id.share_file, hasMedia && selectedItem.getMedia().fileExists());
if (selectedItem.isPlayed()) {
mi.setItemVisibility(R.id.mark_read_item, false);

View File

@ -62,10 +62,11 @@ public class ShareUtils {
shareLink(context, text);
}
public static void shareFeedItemFile(Context context, FeedMedia media) {
public static void shareFeedItemFile(Context context, FeedMedia media) {
Intent i = new Intent(Intent.ACTION_SEND);
i.setType(media.getMime_type());
i.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(new File(media.getLocalMediaUrl())));
i.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
context.startActivity(Intent.createChooser(i, context.getString(R.string.share_file_label)));
}
}
}

View File

@ -126,7 +126,7 @@
<string name="remove_feed_label">Remove Podcast</string>
<string name="share_label">Share&#8230;</string>
<string name="share_link_label">Share Link</string>
<string name="share_file_label">Share file</string>
<string name="share_file_label">Share File</string>
<string name="share_link_with_position_label">Share Link with Position</string>
<string name="share_feed_url_label">Share Feed URL</string>
<string name="share_item_url_label">Share Episode File URL</string>