From c4ae047a4b20eebdee0dcd2925f4c5e70b315000 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Sat, 1 Apr 2023 11:33:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=88=86=E4=BA=AB=E7=9A=84?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E7=9A=84Toast?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/yunbao/share/platform/FacebookShare.java | 3 --- .../main/java/com/yunbao/share/platform/MessengerShare.java | 3 --- Share/src/main/java/com/yunbao/share/ui/SharePopDialog.java | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Share/src/main/java/com/yunbao/share/platform/FacebookShare.java b/Share/src/main/java/com/yunbao/share/platform/FacebookShare.java index 118e90406..c34739e1f 100644 --- a/Share/src/main/java/com/yunbao/share/platform/FacebookShare.java +++ b/Share/src/main/java/com/yunbao/share/platform/FacebookShare.java @@ -33,17 +33,14 @@ public class FacebookShare extends AbsShareInterface { dialog.registerCallback(callbackManager, new FacebookCallback() { @Override public void onSuccess(Sharer.Result result) { - ToastUtil.show("Facebook分享成功"); } @Override public void onCancel() { - ToastUtil.show("Facebook分享取消"); } @Override public void onError(@NonNull FacebookException e) { - ToastUtil.show("Facebook分享失败:"+e.toString()); } }); dialog.show(content); diff --git a/Share/src/main/java/com/yunbao/share/platform/MessengerShare.java b/Share/src/main/java/com/yunbao/share/platform/MessengerShare.java index 0080b3d47..e9b312646 100644 --- a/Share/src/main/java/com/yunbao/share/platform/MessengerShare.java +++ b/Share/src/main/java/com/yunbao/share/platform/MessengerShare.java @@ -36,18 +36,15 @@ public class MessengerShare extends AbsShareInterface { dialog.registerCallback(callbackManager, new FacebookCallback() { @Override public void onSuccess(Sharer.Result result) { - ToastUtil.show("Messenger分享成功:"+result.getPostId()); callback.onSuccess(); } @Override public void onCancel() { - ToastUtil.show("Messenger分享取消"); } @Override public void onError(@NonNull FacebookException e) { - ToastUtil.show("Messenger分享失败:" + e.toString()); e.printStackTrace(); } }); 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 1b38891a6..f3cf84cba 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);