From 8ce65ced303ceb701710ce25d894d29de1ff0bca Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Mon, 10 Apr 2023 11:57:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=88=86=E4=BA=AB=E9=99=84?= =?UTF-8?q?=E5=B8=A6=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/yunbao/share/platform/TwitterShare.java | 2 +- Share/src/main/java/com/yunbao/share/ui/InvitePopDialog.java | 4 ++-- Share/src/main/java/com/yunbao/share/ui/SharePopDialog.java | 4 ++-- .../com/yunbao/live/adapter/LiveAnchorSayItemsAdapter.java | 2 +- live/src/main/res/layout/sim_live_room_anchor_say.xml | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Share/src/main/java/com/yunbao/share/platform/TwitterShare.java b/Share/src/main/java/com/yunbao/share/platform/TwitterShare.java index fbd73b0b5..399cc758c 100644 --- a/Share/src/main/java/com/yunbao/share/platform/TwitterShare.java +++ b/Share/src/main/java/com/yunbao/share/platform/TwitterShare.java @@ -60,7 +60,7 @@ public class TwitterShare extends AbsShareInterface { try { Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_VIEW); - sendIntent.putExtra(Intent.EXTRA_TEXT, date.getLink()); + sendIntent.putExtra(Intent.EXTRA_TEXT, date.getText()); // sendIntent.setType("text/plain"); //sendIntent.setPackage("com.twitter.composer.ComposerShareActivity"); sendIntent.setData(Uri.parse("https://twitter.com/intent/tweet?text=" +URLEncoder.encode(date.getText(),"UTF-8"))); diff --git a/Share/src/main/java/com/yunbao/share/ui/InvitePopDialog.java b/Share/src/main/java/com/yunbao/share/ui/InvitePopDialog.java index 8642fa233..38a494e71 100644 --- a/Share/src/main/java/com/yunbao/share/ui/InvitePopDialog.java +++ b/Share/src/main/java/com/yunbao/share/ui/InvitePopDialog.java @@ -136,7 +136,7 @@ public class InvitePopDialog extends AbsDialogPopupWindow { private ShareBuilder builder(int type) { ShareBuilder builder = ShareBuilder.builder(type); - builder.setText(WordUtil.getString(R.string.dialog_share_info)); + builder.setText(WordUtil.getString(R.string.dialog_invite_info)); builder.setLink(url); builder.setUid(uid); builder.setAnchorId(anchorId); @@ -147,7 +147,7 @@ public class InvitePopDialog extends AbsDialogPopupWindow { private void copyLink() { ClipboardManager cm = (ClipboardManager) getContext().getSystemService(CLIPBOARD_SERVICE); - ClipData clipData = ClipData.newPlainText("text", url); + ClipData clipData = ClipData.newPlainText("text", info.getText() + "\n" + url); cm.setPrimaryClip(clipData); ToastUtil.show(WordUtil.getString(com.yunbao.common.R.string.copy_success)); } diff --git a/Share/src/main/java/com/yunbao/share/ui/SharePopDialog.java b/Share/src/main/java/com/yunbao/share/ui/SharePopDialog.java index f3cf84cba..8485f70bf 100644 --- a/Share/src/main/java/com/yunbao/share/ui/SharePopDialog.java +++ b/Share/src/main/java/com/yunbao/share/ui/SharePopDialog.java @@ -120,7 +120,7 @@ public class SharePopDialog extends AbsDialogPopupWindow { private ShareBuilder builder(int type) { ShareBuilder builder = ShareBuilder.builder(type); - // builder.setText(String.format(WordUtil.getString(R.string.dialog_share_info), StringUtil.isEmpty(anchorName) ? "" : anchorName)); + builder.setText(String.format(WordUtil.getString(R.string.dialog_share_info), StringUtil.isEmpty(anchorName) ? "" : anchorName)); builder.setUid(uid); builder.setAnchorId(anchorId); builder.setAnchorName(anchorName); @@ -139,7 +139,7 @@ public class SharePopDialog extends AbsDialogPopupWindow { url = ShareBuilder.createLiveShareLink(uid, anchorId, anchorName, anchorAvatar); } ClipboardManager cm = (ClipboardManager) getContext().getSystemService(CLIPBOARD_SERVICE); - ClipData clipData = ClipData.newPlainText("text", url); + ClipData clipData = ClipData.newPlainText("text",info.getText().toString()+"\n"+url); cm.setPrimaryClip(clipData); ToastUtil.show(WordUtil.getString(com.yunbao.common.R.string.copy_success)); } diff --git a/live/src/main/java/com/yunbao/live/adapter/LiveAnchorSayItemsAdapter.java b/live/src/main/java/com/yunbao/live/adapter/LiveAnchorSayItemsAdapter.java index 9b628d1ab..6f439d662 100644 --- a/live/src/main/java/com/yunbao/live/adapter/LiveAnchorSayItemsAdapter.java +++ b/live/src/main/java/com/yunbao/live/adapter/LiveAnchorSayItemsAdapter.java @@ -76,7 +76,7 @@ public class LiveAnchorSayItemsAdapter extends RecyclerView.Adapter