mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 08:30:44 +00:00
Long press on player share button to copy url to clipboard
This commit is contained in:
parent
63cff25616
commit
5532666ad5
@ -532,6 +532,7 @@ public final class Player implements
|
||||
binding.moreOptionsButton.setOnClickListener(this);
|
||||
binding.moreOptionsButton.setOnLongClickListener(this);
|
||||
binding.share.setOnClickListener(this);
|
||||
binding.share.setOnLongClickListener(this);
|
||||
binding.fullScreenButton.setOnClickListener(this);
|
||||
binding.screenRotationButton.setOnClickListener(this);
|
||||
binding.playWithKodi.setOnClickListener(this);
|
||||
@ -3629,6 +3630,10 @@ public final class Player implements
|
||||
fragmentListener.onMoreOptionsLongClicked();
|
||||
hideControls(0, 0);
|
||||
hideSystemUIIfNeeded();
|
||||
} else if (v.getId() == binding.share.getId()) {
|
||||
if (currentMetadata != null) {
|
||||
ShareUtils.copyToClipboard(context, currentMetadata.getMetadata().getOriginalUrl());
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user