Long press on player share button to copy url to clipboard
This commit is contained in:
parent
7f9bc7d6b1
commit
3a8e7a8020
1 changed files with 5 additions and 0 deletions
|
|
@ -532,6 +532,7 @@ public final class Player implements
|
||||||
binding.moreOptionsButton.setOnClickListener(this);
|
binding.moreOptionsButton.setOnClickListener(this);
|
||||||
binding.moreOptionsButton.setOnLongClickListener(this);
|
binding.moreOptionsButton.setOnLongClickListener(this);
|
||||||
binding.share.setOnClickListener(this);
|
binding.share.setOnClickListener(this);
|
||||||
|
binding.share.setOnLongClickListener(this);
|
||||||
binding.fullScreenButton.setOnClickListener(this);
|
binding.fullScreenButton.setOnClickListener(this);
|
||||||
binding.screenRotationButton.setOnClickListener(this);
|
binding.screenRotationButton.setOnClickListener(this);
|
||||||
binding.playWithKodi.setOnClickListener(this);
|
binding.playWithKodi.setOnClickListener(this);
|
||||||
|
|
@ -3629,6 +3630,10 @@ public final class Player implements
|
||||||
fragmentListener.onMoreOptionsLongClicked();
|
fragmentListener.onMoreOptionsLongClicked();
|
||||||
hideControls(0, 0);
|
hideControls(0, 0);
|
||||||
hideSystemUIIfNeeded();
|
hideSystemUIIfNeeded();
|
||||||
|
} else if (v.getId() == binding.share.getId()) {
|
||||||
|
if (currentMetadata != null) {
|
||||||
|
ShareUtils.copyToClipboard(context, currentMetadata.getMetadata().getOriginalUrl());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue