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