mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2026-05-16 04:52:39 +02:00
CChanged copy comment to button.
This commit is contained in:
@@ -46,6 +46,7 @@ class CommentViewHolder : ViewHolder {
|
||||
private val _imageLikeIcon: ImageView;
|
||||
private val _textLikes: TextView;
|
||||
private val _imageDislikeIcon: ImageView;
|
||||
private val _imageCopy: ImageView;
|
||||
private val _textDislikes: TextView;
|
||||
private val _buttonReplies: PillButton;
|
||||
private val _layoutRating: LinearLayout;
|
||||
@@ -69,6 +70,7 @@ class CommentViewHolder : ViewHolder {
|
||||
_textMetadata = itemView.findViewById(R.id.text_metadata);
|
||||
_textBody = itemView.findViewById(R.id.text_body);
|
||||
_imageLikeIcon = itemView.findViewById(R.id.image_like_icon);
|
||||
_imageCopy = itemView.findViewById(R.id.image_copy);
|
||||
_textLikes = itemView.findViewById(R.id.text_likes);
|
||||
_imageDislikeIcon = itemView.findViewById(R.id.image_dislike_icon);
|
||||
_textDislikes = itemView.findViewById(R.id.text_dislikes);
|
||||
@@ -103,7 +105,7 @@ class CommentViewHolder : ViewHolder {
|
||||
StatePolycentric.instance.updateLikeMap(c.reference, args.hasLiked, args.hasDisliked)
|
||||
};
|
||||
|
||||
_layoutComment.setOnLongClickListener {
|
||||
_imageCopy.setOnLongClickListener {
|
||||
val clipboard = viewGroup.context.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
|
||||
val text = comment?.message.orEmpty()
|
||||
val clip = ClipData.newPlainText("Comment", text)
|
||||
|
||||
@@ -96,6 +96,16 @@
|
||||
android:layout_marginTop="8dp"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image_copy"
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="18dp"
|
||||
android:contentDescription="@string/copy"
|
||||
app:srcCompat="@drawable/ic_copy"
|
||||
app:tint="@color/white"
|
||||
android:background="@drawable/background_pill"
|
||||
android:layout_marginStart="9dp" />
|
||||
|
||||
<com.futo.platformplayer.views.pills.PillRatingLikesDislikes
|
||||
android:id="@+id/rating"
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
Reference in New Issue
Block a user