Initial work to add the image of the content in the share sheet
Also do some fixes when sharing a file in downloads and some improvements in JavaDocs of ShareUtils class.
This commit is contained in:
parent
2fb86364ab
commit
d85afd6435
10 changed files with 93 additions and 31 deletions
|
|
@ -313,7 +313,8 @@ public final class PlayQueueActivity extends AppCompatActivity
|
|||
final MenuItem share = popupMenu.getMenu().add(RECYCLER_ITEM_POPUP_MENU_GROUP_ID, 3,
|
||||
Menu.NONE, R.string.share);
|
||||
share.setOnMenuItemClickListener(menuItem -> {
|
||||
shareText(getApplicationContext(), item.getTitle(), item.getUrl());
|
||||
shareText(getApplicationContext(), item.getTitle(), item.getUrl(),
|
||||
item.getThumbnailUrl());
|
||||
return true;
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -3593,7 +3593,8 @@ public final class Player implements
|
|||
} else if (v.getId() == binding.moreOptionsButton.getId()) {
|
||||
onMoreOptionsClicked();
|
||||
} else if (v.getId() == binding.share.getId()) {
|
||||
ShareUtils.shareText(context, getVideoTitle(), getVideoUrlAtCurrentTime());
|
||||
ShareUtils.shareText(context, getVideoTitle(), getVideoUrlAtCurrentTime(),
|
||||
currentItem.getThumbnailUrl());
|
||||
} else if (v.getId() == binding.playWithKodi.getId()) {
|
||||
onPlayWithKodiClicked();
|
||||
} else if (v.getId() == binding.openInBrowser.getId()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue