移除分享的结果的Toast
This commit is contained in:
parent
5657d5a00b
commit
c4ae047a4b
@ -33,17 +33,14 @@ public class FacebookShare extends AbsShareInterface {
|
||||
dialog.registerCallback(callbackManager, new FacebookCallback<Sharer.Result>() {
|
||||
@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);
|
||||
|
@ -36,18 +36,15 @@ public class MessengerShare extends AbsShareInterface {
|
||||
dialog.registerCallback(callbackManager, new FacebookCallback<Sharer.Result>() {
|
||||
@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();
|
||||
}
|
||||
});
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user