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);